Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 113.3 kB / 17.07 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001649/0.00165, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.6/1.6, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3683, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.005205/0.3736, allocations: 1.825 MB / 402 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.3761, allocations: 1.035 MB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.3763, allocations: 7.938 kB / 403.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008693/0.3772, allocations: 155.5 kB / 403.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004329/0.3776, allocations: 131.5 kB / 403.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006755/0.3783, allocations: 173.8 kB / 403.5 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003544/0.3787, allocations: 207.4 kB / 403.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.3788, allocations: 29.52 kB / 403.8 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.379, allocations: 83.64 kB / 403.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.3792, allocations: 83.67 kB / 403.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.425e-05/0.3792, allocations: 12 kB / 403.9 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.3794, allocations: 63.89 kB / 404 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.395e-05/0.3796, allocations: 43.84 kB / 404 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.3797, allocations: 79.53 kB / 404.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004232/0.3801, allocations: 220.9 kB / 404.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3802, allocations: 0 / 404.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3802, allocations: 0 / 404.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.3802, allocations: 0 / 404.3 MB, free: 4.684 MB / 318.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.001163/0.3813, allocations: 0.5235 MB / 404.9 MB, free: 4.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.535e-05/0.3814, allocations: 8.031 kB / 404.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.999e-05/0.3815, allocations: 38.75 kB / 404.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.747e-05/0.3816, allocations: 24.59 kB / 404.9 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004468/0.382, allocations: 258.4 kB / 405.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.3821, allocations: 8 kB / 405.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.3821, allocations: 7.938 kB / 405.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.3824, allocations: 117.9 kB / 405.3 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.3825, allocations: 3.938 kB / 405.3 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.3825, allocations: 4 kB / 405.3 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.3825, allocations: 0 / 405.3 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.3827, allocations: 51.91 kB / 405.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008714/0.3836, allocations: 0.5989 MB / 406 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.384, allocations: 131.9 kB / 406.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.3841, allocations: 50.56 kB / 406.2 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.453e-05/0.3842, allocations: 4 kB / 406.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003044/0.3845, allocations: 121.8 kB / 406.3 MB, free: 2.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.094e-06/0.3845, allocations: 0 / 406.3 MB, free: 2.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006451/0.3852, allocations: 173.8 kB / 406.4 MB, free: 2.328 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.3853, allocations: 140.4 kB / 406.6 MB, free: 2.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004421/0.3858, allocations: 281 kB / 406.9 MB, free: 1.871 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.596e-05/0.3858, allocations: 33.7 kB / 406.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.386, allocations: 124.3 kB / 407 MB, free: 1.703 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.964e-05/0.386, allocations: 31.77 kB / 407 MB, free: 1.672 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.826e-05/0.3861, allocations: 33.7 kB / 407.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002668/0.3864, allocations: 334.8 kB / 407.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.3865, allocations: 27.98 kB / 407.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.3868, allocations: 78.05 kB / 407.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/0.387, allocations: 100.2 kB / 407.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.3871, allocations: 0 / 407.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004099/0.3875, allocations: 141.3 kB / 407.7 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.06e-05/0.3875, allocations: 12.09 kB / 407.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.3876, allocations: 0 / 407.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.198e-05/0.3876, allocations: 7.938 kB / 407.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.3878, allocations: 11.98 kB / 407.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.888e-05/0.3878, allocations: 11.92 kB / 407.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.388, allocations: 27.77 kB / 407.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.388, allocations: 4 kB / 407.8 MB, free: 0.8398 MB / 318.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.0002238/0.3882, allocations: 145.7 kB / 408 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.264e-05/0.3883, allocations: 27.7 kB / 408 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.333e-05/0.3884, allocations: 25.7 kB / 408 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.3884, allocations: 3.938 kB / 408 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.3884, allocations: 4 kB / 408 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.3885, allocations: 128 / 408 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003842/0.3888, allocations: 249.5 kB / 408.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3889, allocations: 3.938 kB / 408.3 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.064e-05/0.3889, allocations: 11.92 kB / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.3889, allocations: 0 / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.3889, allocations: 4 kB / 408.3 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.389, allocations: 7.938 kB / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.389, allocations: 0 / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004493/0.3894, allocations: 170.5 kB / 408.5 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001548/0.3896, allocations: 100.9 kB / 408.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.471e-05/0.3896, allocations: 4 kB / 408.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.3898, allocations: 19.88 kB / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.3899, allocations: 19.92 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/0.39, allocations: 4 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000331/0.3903, allocations: 212.5 kB / 408.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3903, allocations: 0 / 408.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004334/0.3907, allocations: 39.98 kB / 408.8 MB, free: 15.7 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.002266/0.393, allocations: 1.029 MB / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003857/0.3934, allocations: 95.83 kB / 410 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3934, allocations: 4 kB / 410 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001773/0.3936, allocations: 52.11 kB / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005518/0.3942, allocations: 48.66 kB / 410.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003757/0.398, allocations: 2.151 MB / 412.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/0.3984, allocations: 0.7357 MB / 413 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001444/0.3986, allocations: 21.55 kB / 413 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.3987, allocations: 59.41 kB / 413 MB, free: 11.5 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3987, allocations: 3.938 kB / 413 MB, free: 11.5 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03587/0.4346, allocations: 5.188 MB / 418.2 MB, free: 6.418 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.13, allocations: 13.84 kB / 418.2 MB, free: 6.41 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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.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