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.001355/0.001355, allocations: 118.3 kB / 17.28 MB, free: 6.219 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.00144/0.00144, allocations: 193.3 kB / 18.19 MB, free: 5.301 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.62/1.62, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001782/0.001782, allocations: 55.92 kB / 280.2 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1406, allocations: 46.63 MB / 326.9 MB, free: 4.727 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004/0.1447, allocations: 1.879 MB / 328.7 MB, free: 2.828 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.1464, allocations: 0.9403 MB / 329.7 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.1465, allocations: 4 kB / 329.7 MB, free: 1.875 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006838/0.1472, allocations: 151.7 kB / 329.8 MB, free: 1.727 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003052/0.1475, allocations: 119.6 kB / 330 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003759/0.1479, allocations: 131.8 kB / 330.1 MB, free: 1.48 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.1482, allocations: 207.4 kB / 330.3 MB, free: 1.277 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.1483, allocations: 25.53 kB / 330.3 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.1485, allocations: 83.62 kB / 330.4 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.1486, allocations: 95.61 kB / 330.5 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.1487, allocations: 12 kB / 330.5 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001317/0.1488, allocations: 51.97 kB / 330.6 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00015/0.149, allocations: 51.83 kB / 330.6 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.432e-05/0.1491, allocations: 79.47 kB / 330.7 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003142/0.1494, allocations: 211.6 kB / 330.9 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1494, allocations: 0 / 330.9 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1494, allocations: 4 kB / 330.9 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1494, allocations: 0 / 330.9 MB, free: 0.6758 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.0009616/0.1504, allocations: 0.5235 MB / 331.4 MB, free: 100 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.868e-05/0.1505, allocations: 12.03 kB / 331.4 MB, free: 88 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.544e-05/0.1505, allocations: 34.73 kB / 331.5 MB, free: 44 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.537e-05/0.1506, allocations: 16.75 kB / 331.5 MB, free: 28 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.151, allocations: 262.8 kB / 331.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.151, allocations: 8.359 kB / 331.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.328e-05/0.151, allocations: 7.938 kB / 331.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.1513, allocations: 114 kB / 331.9 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.1514, allocations: 3.938 kB / 331.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.1514, allocations: 0 / 331.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.1514, allocations: 4 kB / 331.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001538/0.1516, allocations: 55.91 kB / 331.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008283/0.1524, allocations: 0.6142 MB / 332.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000275/0.1527, allocations: 119.9 kB / 332.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.1528, allocations: 54.55 kB / 332.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/0.1529, allocations: 3.938 kB / 332.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002382/0.1531, allocations: 117.9 kB / 332.8 MB, free: 14.49 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 2.094e-06/0.1531, allocations: 0 / 332.8 MB, free: 14.49 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005207/0.1536, allocations: 173.3 kB / 333 MB, free: 14.32 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.1538, allocations: 132.5 kB / 333.1 MB, free: 14.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004187/0.1542, allocations: 296.8 kB / 333.4 MB, free: 13.86 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.1542, allocations: 25.7 kB / 333.4 MB, free: 13.82 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.1544, allocations: 132.5 kB / 333.6 MB, free: 13.69 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.27e-05/0.1545, allocations: 23.66 kB / 333.6 MB, free: 13.67 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.866e-05/0.1545, allocations: 37.7 kB / 333.6 MB, free: 13.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.1547, allocations: 330.8 kB / 334 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.939e-05/0.1548, allocations: 27.98 kB / 334 MB, free: 13.27 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.1549, allocations: 89.98 kB / 334.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001802/0.1551, allocations: 92.22 kB / 334.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1551, allocations: 0 / 334.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002718/0.1554, allocations: 146 kB / 334.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.1554, allocations: 4 kB / 334.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.1555, allocations: 8 kB / 334.3 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.1555, allocations: 0 / 334.3 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.903e-05/0.1556, allocations: 19.94 kB / 334.3 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.1556, allocations: 4 kB / 334.3 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.1557, allocations: 19.83 kB / 334.4 MB, free: 12.85 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.1557, allocations: 7.984 kB / 334.4 MB, free: 12.84 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.0001582/0.1559, allocations: 157.4 kB / 334.5 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.695e-05/0.1559, allocations: 23.75 kB / 334.5 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.877e-05/0.156, allocations: 25.7 kB / 334.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.156, allocations: 0 / 334.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.156, allocations: 0 / 334.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.156, allocations: 11.92 kB / 334.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002477/0.1563, allocations: 237.5 kB / 334.8 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1563, allocations: 0 / 334.8 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.769e-05/0.1563, allocations: 8 kB / 334.8 MB, free: 12.33 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1563, allocations: 3.984 kB / 334.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.1563, allocations: 0 / 334.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.465e-05/0.1564, allocations: 8 kB / 334.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.1564, allocations: 0 / 334.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003052/0.1567, allocations: 178.4 kB / 335 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.092e-05/0.1568, allocations: 92.92 kB / 335.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.207e-05/0.1568, allocations: 7.984 kB / 335.1 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.1569, allocations: 23.92 kB / 335.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.986e-05/0.157, allocations: 15.86 kB / 335.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.157, allocations: 8 kB / 335.1 MB, free: 11.95 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002058/0.1572, allocations: 212.5 kB / 335.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1572, allocations: 0 / 335.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002566/0.1575, allocations: 36 kB / 335.4 MB, free: 11.71 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.001607/0.1591, allocations: 1.027 MB / 336.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002808/0.1594, allocations: 91.89 kB / 336.5 MB, free: 10.57 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.1594, allocations: 4.188 kB / 336.5 MB, free: 10.57 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.1596, allocations: 52.3 kB / 336.6 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.1599, allocations: 52.45 kB / 336.6 MB, free: 10.46 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002592/0.1625, allocations: 2.196 MB / 338.8 MB, free: 8.152 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004702/0.163, allocations: 0.7357 MB / 339.5 MB, free: 7.391 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001921/0.1632, allocations: 29.52 kB / 339.6 MB, free: 7.363 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.972e-05/0.1633, allocations: 59.41 kB / 339.6 MB, free: 7.305 MB / 286.1 MB Notification: Performance of SimCode: time 1.713e-06/0.1633, allocations: 4 kB / 339.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01756/0.1809, allocations: 4.844 MB / 344.5 MB, free: 2.418 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002514/0.1811, allocations: 236.5 kB / 344.7 MB, free: 2.16 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.303, allocations: 0 / 344.7 MB, free: 2.16 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