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: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001416/0.001417, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001603/0.001603, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 55.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2863, allocations: 50.55 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004015/0.2903, allocations: 1.851 MB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.2926, allocations: 1.173 MB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.2928, allocations: 0 / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006835/0.2935, allocations: 175.5 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003846/0.2939, allocations: 162.9 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003574/0.2943, allocations: 143.5 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002599/0.2945, allocations: 215.4 kB / 412.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.2947, allocations: 25.55 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.2948, allocations: 87.62 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001314/0.2949, allocations: 91.61 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.263e-05/0.295, allocations: 8 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001403/0.2951, allocations: 55.91 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.132e-05/0.2952, allocations: 55.81 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.285e-05/0.2953, allocations: 79.55 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000323/0.2956, allocations: 224.9 kB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2956, allocations: 0 / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2956, allocations: 0 / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.2957, allocations: 8 kB / 413.1 MB, free: 13.21 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.000915/0.2966, allocations: 0.5273 MB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.2966, allocations: 12.03 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.778e-05/0.2967, allocations: 38.73 kB / 413.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.402e-05/0.2967, allocations: 20.75 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003068/0.297, allocations: 262.8 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.2971, allocations: 384 / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.2971, allocations: 19.94 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002287/0.2973, allocations: 113.9 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.2973, allocations: 3.984 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.2974, allocations: 4 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.2974, allocations: 0 / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000157/0.2975, allocations: 51.91 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006052/0.2982, allocations: 0.6105 MB / 414.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.2984, allocations: 127.9 kB / 414.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.695e-05/0.2985, allocations: 50.56 kB / 414.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.2986, allocations: 0 / 414.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002098/0.2988, allocations: 125.9 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.613e-06/0.2988, allocations: 0 / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004355/0.2992, allocations: 173.3 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.856e-05/0.2993, allocations: 132.5 kB / 415.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003053/0.2996, allocations: 293.1 kB / 415.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.2997, allocations: 45.62 kB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.732e-05/0.2998, allocations: 128.2 kB / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.715e-05/0.2998, allocations: 19.72 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.75e-05/0.2999, allocations: 37.7 kB / 415.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.3, allocations: 330.8 kB / 416.2 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.738e-05/0.3001, allocations: 31.98 kB / 416.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.3002, allocations: 89.92 kB / 416.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001771/0.3004, allocations: 92.22 kB / 416.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3004, allocations: 3.938 kB / 416.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002654/0.3007, allocations: 145.9 kB / 416.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3007, allocations: 8 kB / 416.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3007, allocations: 4 kB / 416.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.3007, allocations: 4 kB / 416.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.933e-05/0.3008, allocations: 12 kB / 416.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.3009, allocations: 4 kB / 416.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.301, allocations: 15.92 kB / 416.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.301, allocations: 7.938 kB / 416.6 MB, free: 9.355 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.0001373/0.3011, allocations: 157.8 kB / 416.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.3012, allocations: 19.72 kB / 416.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.971e-05/0.3012, allocations: 25.7 kB / 416.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3013, allocations: 4 kB / 416.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3013, allocations: 0 / 416.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.3013, allocations: 7.922 kB / 416.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002686/0.3016, allocations: 241.5 kB / 417 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3016, allocations: 3.984 kB / 417 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.02e-05/0.3016, allocations: 8 kB / 417 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.3016, allocations: 11.94 kB / 417 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.3016, allocations: 0 / 417 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3016, allocations: 4 kB / 417 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3016, allocations: 0 / 417 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/0.302, allocations: 178.4 kB / 417.2 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.458e-05/0.302, allocations: 96.91 kB / 417.3 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.3021, allocations: 8 kB / 417.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.621e-05/0.3022, allocations: 11.98 kB / 417.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.942e-05/0.3022, allocations: 15.92 kB / 417.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.3023, allocations: 7.938 kB / 417.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000198/0.3025, allocations: 220.4 kB / 417.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3025, allocations: 0 / 417.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002727/0.3028, allocations: 35.91 kB / 417.6 MB, free: 8.215 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.001405/0.3042, allocations: 1.023 MB / 418.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002565/0.3044, allocations: 91.91 kB / 418.7 MB, free: 7.211 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3044, allocations: 0 / 418.7 MB, free: 7.211 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.3046, allocations: 56.28 kB / 418.8 MB, free: 7.156 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003756/0.305, allocations: 66.36 kB / 418.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002556/0.3075, allocations: 2.194 MB / 421 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.3078, allocations: 0.728 MB / 421.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.145e-05/0.3079, allocations: 25.53 kB / 421.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.203e-05/0.308, allocations: 59.42 kB / 421.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of SimCode: time 4.2e-07/0.308, allocations: 0 / 421.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02278/0.3308, allocations: 5.27 MB / 427.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.828/8.159, allocations: 4.953 kB / 427.1 MB, free: 14.75 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,table.y Variables in the result:booleanExpression.y,const.k,const.y,pulse.period,pulse.startTime,pulse.width,pulse.y,sample.period,sample.startTime,sample.y,step.startTime,step.startValue,step.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.table[3],table.table[4],table.y,time