Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001178/0.001178, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001168, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 55.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2764, allocations: 50.55 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003055/0.2795, allocations: 1.85 MB / 411.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001916/0.2814, allocations: 1.173 MB / 412.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.548e-05/0.2815, allocations: 0 / 412.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006232/0.2822, allocations: 171.5 kB / 412.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003803/0.2825, allocations: 170.8 kB / 412.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003252/0.2829, allocations: 139.6 kB / 412.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002441/0.2831, allocations: 227.3 kB / 413 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.2832, allocations: 21.56 kB / 413 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.2834, allocations: 83.67 kB / 413.1 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.2835, allocations: 91.56 kB / 413.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.2836, allocations: 11.94 kB / 413.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/0.2837, allocations: 55.95 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.024e-05/0.2838, allocations: 43.84 kB / 413.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.46e-05/0.2839, allocations: 83.48 kB / 413.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002974/0.2842, allocations: 223.1 kB / 413.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2842, allocations: 4 kB / 413.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2842, allocations: 0 / 413.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.2842, allocations: 0 / 413.6 MB, free: 13.26 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008573/0.2851, allocations: 0.535 MB / 414.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.2851, allocations: 8.031 kB / 414.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.2852, allocations: 20.8 kB / 414.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.2855, allocations: 274.9 kB / 414.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.2856, allocations: 4.375 kB / 414.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.96e-05/0.2856, allocations: 12.12 kB / 414.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.2858, allocations: 113.9 kB / 414.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.2859, allocations: 3.938 kB / 414.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.542e-05/0.2859, allocations: 4 kB / 414.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.2859, allocations: 0 / 414.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.2861, allocations: 59.89 kB / 414.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006631/0.2867, allocations: 0.6027 MB / 415.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.287, allocations: 131.9 kB / 415.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.812e-05/0.2871, allocations: 42.56 kB / 415.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.633e-05/0.2871, allocations: 11.94 kB / 415.4 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.2874, allocations: 113.9 kB / 415.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.2874, allocations: 0 / 415.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004644/0.2879, allocations: 189.8 kB / 415.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.736e-05/0.288, allocations: 128.5 kB / 415.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003155/0.2883, allocations: 293 kB / 416.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.2883, allocations: 25.7 kB / 416.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.2884, allocations: 136.5 kB / 416.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.774e-05/0.2885, allocations: 31.81 kB / 416.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.639e-05/0.2885, allocations: 33.7 kB / 416.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.2887, allocations: 338.8 kB / 416.6 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.2888, allocations: 27.98 kB / 416.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.2889, allocations: 85.98 kB / 416.7 MB, free: 9.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.2891, allocations: 88.22 kB / 416.8 MB, free: 9.648 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2891, allocations: 7.938 kB / 416.8 MB, free: 9.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002835/0.2894, allocations: 149.5 kB / 417 MB, free: 9.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2895, allocations: 4 kB / 417 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.2895, allocations: 4 kB / 417 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.2895, allocations: 0 / 417 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.293e-05/0.2896, allocations: 15.94 kB / 417 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.2896, allocations: 7.938 kB / 417 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.2897, allocations: 23.86 kB / 417 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.2897, allocations: 4 kB / 417 MB, free: 9.43 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001565/0.2899, allocations: 150 kB / 417.2 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.801e-05/0.2899, allocations: 23.86 kB / 417.2 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.144e-05/0.29, allocations: 25.7 kB / 417.2 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.29, allocations: 4 kB / 417.2 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.29, allocations: 7.938 kB / 417.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.29, allocations: 7.922 kB / 417.3 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002512/0.2903, allocations: 241.5 kB / 417.5 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2903, allocations: 0 / 417.5 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.409e-05/0.2904, allocations: 7.984 kB / 417.5 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.2904, allocations: 0 / 417.5 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.2904, allocations: 12 kB / 417.5 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2904, allocations: 0 / 417.5 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2904, allocations: 0 / 417.5 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002857/0.2907, allocations: 186.5 kB / 417.7 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.393e-05/0.2908, allocations: 93 kB / 417.8 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.2908, allocations: 4 kB / 417.8 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.166e-05/0.2909, allocations: 15.98 kB / 417.8 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.443e-05/0.291, allocations: 19.92 kB / 417.8 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.291, allocations: 4 kB / 417.8 MB, free: 8.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002117/0.2912, allocations: 216.5 kB / 418 MB, free: 8.328 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2912, allocations: 0 / 418 MB, free: 8.328 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002566/0.2915, allocations: 39.92 kB / 418.1 MB, free: 8.289 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008862/0.2924, allocations: 411.2 kB / 418.5 MB, free: 8.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002868/0.2927, allocations: 99.77 kB / 418.6 MB, free: 7.922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2927, allocations: 0 / 418.6 MB, free: 7.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.2928, allocations: 51.92 kB / 418.6 MB, free: 7.871 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003519/0.2932, allocations: 66.66 kB / 418.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006163/0.2938, allocations: 353.1 kB / 419 MB, free: 7.434 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.2941, allocations: 0.728 MB / 419.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.355e-05/0.2942, allocations: 25.55 kB / 419.8 MB, free: 6.652 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.99e-05/0.2943, allocations: 27.42 kB / 419.8 MB, free: 6.625 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2943, allocations: 0 / 419.8 MB, free: 6.625 MB / 334.1 MB Notification: Performance of Templates: time 0.005637/0.2999, allocations: 2.795 MB / 422.6 MB, free: 3.848 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches