Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",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.001229/0.001229, allocations: 114 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.001113/0.001113, allocations: 193.3 kB / 18.2 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.821/1.821, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001368/0.001368, allocations: 44.14 kB / 280.2 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1527, allocations: 46.63 MB / 326.9 MB, free: 4.707 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004321/0.157, allocations: 2.039 MB / 328.9 MB, free: 2.648 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.1591, allocations: 1.042 MB / 329.9 MB, free: 1.598 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.1592, allocations: 7.938 kB / 330 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007844/0.16, allocations: 275.4 kB / 330.2 MB, free: 1.32 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004505/0.1605, allocations: 195.5 kB / 330.4 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006033/0.1611, allocations: 243.6 kB / 330.7 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004353/0.1615, allocations: 351.2 kB / 331 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.1617, allocations: 64.38 kB / 331.1 MB, free: 496 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.1619, allocations: 139.5 kB / 331.2 MB, free: 356 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002157/0.1622, allocations: 151.4 kB / 331.3 MB, free: 204 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.316e-05/0.1622, allocations: 20 kB / 331.4 MB, free: 184 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001802/0.1624, allocations: 71.89 kB / 331.4 MB, free: 112 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.1625, allocations: 87.75 kB / 331.5 MB, free: 24 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.1627, allocations: 131.3 kB / 331.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004649/0.1632, allocations: 343 kB / 332 MB, free: 15.56 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1632, allocations: 0 / 332 MB, free: 15.56 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1632, allocations: 0 / 332 MB, free: 15.56 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.497e-06/0.1633, allocations: 0 / 332 MB, free: 15.56 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001241/0.1645, allocations: 0.6572 MB / 332.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.907e-05/0.1646, allocations: 12.03 kB / 332.7 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.599e-05/0.1646, allocations: 42.73 kB / 332.7 MB, free: 14.78 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.575e-05/0.1647, allocations: 28.56 kB / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005086/0.1652, allocations: 335.9 kB / 333 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.1653, allocations: 8.375 kB / 333.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.1653, allocations: 15.94 kB / 333.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000371/0.1657, allocations: 148.1 kB / 333.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.1657, allocations: 8 kB / 333.2 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.1658, allocations: 0 / 333.2 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1658, allocations: 4 kB / 333.2 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.166, allocations: 75.81 kB / 333.3 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008446/0.1668, allocations: 0.4886 MB / 333.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003587/0.1672, allocations: 130.7 kB / 333.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.1673, allocations: 52.77 kB / 334 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.49e-05/0.1674, allocations: 7.984 kB / 334 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002683/0.1676, allocations: 115.3 kB / 334.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 2.314e-06/0.1677, allocations: 0 / 334.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005765/0.1682, allocations: 218.2 kB / 334.3 MB, free: 13.03 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.1684, allocations: 106.8 kB / 334.4 MB, free: 12.9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005378/0.1689, allocations: 424.5 kB / 334.8 MB, free: 12.48 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.169, allocations: 29.7 kB / 334.9 MB, free: 12.44 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.1691, allocations: 171.9 kB / 335 MB, free: 12.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.304e-05/0.1692, allocations: 39.55 kB / 335.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.65e-05/0.1693, allocations: 41.7 kB / 335.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.1695, allocations: 342.8 kB / 335.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.1696, allocations: 43.98 kB / 335.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.1698, allocations: 117.9 kB / 335.6 MB, free: 11.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.17, allocations: 101.6 kB / 335.7 MB, free: 11.55 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.17, allocations: 4 kB / 335.7 MB, free: 11.55 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003385/0.1704, allocations: 169.2 kB / 335.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1704, allocations: 16 kB / 335.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1704, allocations: 0 / 335.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1704, allocations: 0 / 335.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.1706, allocations: 31.92 kB / 335.9 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.1706, allocations: 0 / 335.9 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.1707, allocations: 23.83 kB / 335.9 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.1707, allocations: 8 kB / 335.9 MB, free: 11.3 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001973/0.1709, allocations: 163.6 kB / 336.1 MB, free: 11.13 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.079e-05/0.171, allocations: 35.56 kB / 336.1 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.312e-05/0.1711, allocations: 38.92 kB / 336.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1711, allocations: 4 kB / 336.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1711, allocations: 0 / 336.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1711, allocations: 0 / 336.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.1714, allocations: 297.4 kB / 336.5 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1714, allocations: 0 / 336.5 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.641e-05/0.1714, allocations: 15.94 kB / 336.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.1715, allocations: 7.875 kB / 336.5 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.1715, allocations: 0 / 336.5 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.1715, allocations: 4 kB / 336.5 MB, free: 10.68 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1715, allocations: 11.92 kB / 336.5 MB, free: 10.67 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003437/0.1718, allocations: 193.4 kB / 336.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.172, allocations: 116.6 kB / 336.8 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.446e-05/0.172, allocations: 0 / 336.8 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-05/0.1721, allocations: 11.98 kB / 336.8 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.208e-05/0.1722, allocations: 15.92 kB / 336.8 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.1722, allocations: 12 kB / 336.8 MB, free: 10.29 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000344/0.1726, allocations: 315 kB / 337.2 MB, free: 9.988 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1726, allocations: 0 / 337.2 MB, free: 9.988 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002869/0.1729, allocations: 48 kB / 337.2 MB, free: 9.941 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001913/0.1748, allocations: 1.064 MB / 338.3 MB, free: 8.859 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003853/0.1752, allocations: 131.7 kB / 338.4 MB, free: 8.73 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1752, allocations: 0 / 338.4 MB, free: 8.73 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.1753, allocations: 63.91 kB / 338.5 MB, free: 8.668 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000453/0.1758, allocations: 73.23 kB / 338.5 MB, free: 8.594 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004188/0.18, allocations: 2.9 MB / 341.4 MB, free: 5.605 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005028/0.1805, allocations: 0.7752 MB / 342.2 MB, free: 4.805 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.1807, allocations: 46.25 kB / 342.2 MB, free: 4.758 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001792/0.1809, allocations: 91.41 kB / 342.3 MB, free: 4.668 MB / 286.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1809, allocations: 0 / 342.3 MB, free: 4.668 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02214/0.203, allocations: 6.887 MB / 349.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/0.2032, allocations: 236.6 kB / 349.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.281/2.484, allocations: 4 kB / 349.5 MB, free: 13.47 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches