Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_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.001135/0.001135, allocations: 104.6 kB / 17.16 MB, free: 6.32 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.001177/0.001177, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.175/1.175, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 51.92 kB / 280.1 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07387/0.07494, allocations: 46.62 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002892/0.07788, allocations: 1.875 MB / 328.6 MB, free: 2.898 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.07918, allocations: 0.9364 MB / 329.5 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.799e-05/0.07926, allocations: 0 / 329.5 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000509/0.07978, allocations: 163.6 kB / 329.7 MB, free: 1.793 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.08002, allocations: 119.6 kB / 329.8 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003077/0.08034, allocations: 127.8 kB / 329.9 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002084/0.08056, allocations: 203.4 kB / 330.1 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.177e-05/0.08065, allocations: 25.55 kB / 330.1 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.08076, allocations: 75.62 kB / 330.2 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.08087, allocations: 87.61 kB / 330.3 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.0809, allocations: 8 kB / 330.3 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001092/0.08102, allocations: 51.91 kB / 330.3 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.922e-05/0.08108, allocations: 39.89 kB / 330.4 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.194e-05/0.08117, allocations: 63.55 kB / 330.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.08142, allocations: 215.5 kB / 330.7 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.08143, allocations: 0 / 330.7 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.08143, allocations: 0 / 330.7 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.08144, allocations: 0 / 330.7 MB, free: 0.7969 MB / 270.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.0007045/0.08215, allocations: 0.5312 MB / 331.2 MB, free: 216 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.08219, allocations: 8.031 kB / 331.2 MB, free: 208 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.287e-05/0.08222, allocations: 38.73 kB / 331.2 MB, free: 160 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.658e-05/0.08228, allocations: 20.75 kB / 331.2 MB, free: 140 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.08256, allocations: 258.8 kB / 331.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.08258, allocations: 4.375 kB / 331.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.0826, allocations: 11.94 kB / 331.5 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002086/0.08282, allocations: 121.9 kB / 331.6 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.08283, allocations: 0 / 331.6 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.08285, allocations: 0 / 331.6 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.08286, allocations: 4 kB / 331.6 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001459/0.08301, allocations: 51.91 kB / 331.7 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005594/0.08358, allocations: 0.6104 MB / 332.3 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002402/0.08383, allocations: 123.9 kB / 332.4 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.603e-05/0.08393, allocations: 46.56 kB / 332.5 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.08396, allocations: 3.984 kB / 332.5 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002019/0.08417, allocations: 125.9 kB / 332.6 MB, free: 14.61 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.08418, allocations: 0 / 332.6 MB, free: 14.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004157/0.0846, allocations: 165.4 kB / 332.8 MB, free: 14.44 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.08467, allocations: 132.5 kB / 332.9 MB, free: 14.28 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/0.08495, allocations: 292.8 kB / 333.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.08498, allocations: 29.69 kB / 333.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.195e-05/0.08506, allocations: 128.3 kB / 333.3 MB, free: 13.82 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.544e-05/0.0851, allocations: 35.84 kB / 333.4 MB, free: 13.78 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.088e-05/0.08516, allocations: 33.7 kB / 333.4 MB, free: 13.74 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.08527, allocations: 330.8 kB / 333.7 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.08539, allocations: 27.98 kB / 333.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.08552, allocations: 81.98 kB / 333.8 MB, free: 13.28 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.08569, allocations: 100.8 kB / 333.9 MB, free: 13.17 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.08571, allocations: 4 kB / 333.9 MB, free: 13.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002684/0.08598, allocations: 137.3 kB / 334.1 MB, free: 13.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.086, allocations: 16.02 kB / 334.1 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.778e-06/0.08601, allocations: 0 / 334.1 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.08602, allocations: 4 kB / 334.1 MB, free: 13 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.643e-05/0.08611, allocations: 16 kB / 334.1 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.08612, allocations: 0 / 334.1 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.08623, allocations: 19.83 kB / 334.1 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.08624, allocations: 4 kB / 334.1 MB, free: 12.96 MB / 286.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.000129/0.08638, allocations: 165.2 kB / 334.3 MB, free: 12.79 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.223e-05/0.08642, allocations: 19.81 kB / 334.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.21e-05/0.08648, allocations: 25.7 kB / 334.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.08649, allocations: 4 kB / 334.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.08649, allocations: 0 / 334.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.0865, allocations: 7.922 kB / 334.3 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001986/0.08671, allocations: 241.5 kB / 334.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.08672, allocations: 0 / 334.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.613e-05/0.08675, allocations: 4 kB / 334.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.08676, allocations: 4 kB / 334.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.08677, allocations: 11.92 kB / 334.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.75e-06/0.08678, allocations: 8.125 kB / 334.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.08679, allocations: 4 kB / 334.6 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.08708, allocations: 182.3 kB / 334.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.844e-05/0.08715, allocations: 88.92 kB / 334.9 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.463e-05/0.08719, allocations: 7.984 kB / 334.9 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.0873, allocations: 12 kB / 334.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/0.08736, allocations: 19.91 kB / 334.9 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.08738, allocations: 8 kB / 334.9 MB, free: 12.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001915/0.08758, allocations: 212.4 kB / 335.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08758, allocations: 0 / 335.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002416/0.08783, allocations: 32 kB / 335.2 MB, free: 11.83 MB / 286.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.001332/0.08917, allocations: 1.027 MB / 336.2 MB, free: 10.78 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002524/0.08943, allocations: 95.83 kB / 336.3 MB, free: 10.68 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.08944, allocations: 0 / 336.3 MB, free: 10.68 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.08957, allocations: 52.11 kB / 336.3 MB, free: 10.63 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000319/0.0899, allocations: 48.34 kB / 336.4 MB, free: 10.59 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.09222, allocations: 2.189 MB / 338.6 MB, free: 8.281 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.09255, allocations: 0.7322 MB / 339.3 MB, free: 7.523 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.111e-05/0.09264, allocations: 17.55 kB / 339.3 MB, free: 7.508 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.09275, allocations: 59.41 kB / 339.4 MB, free: 7.449 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09276, allocations: 0 / 339.4 MB, free: 7.449 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01401/0.1068, allocations: 4.727 MB / 344.1 MB, free: 2.684 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/0.107, allocations: 240.2 kB / 344.3 MB, free: 2.422 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/1.936, allocations: 0 / 344.3 MB, free: 2.422 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches