Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",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.001599/0.0016, allocations: 111.9 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.001883/0.001884, 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.83/1.83, allocations: 205.1 MB / 224 MB, free: 12.36 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.001642/0.001642, allocations: 51.94 kB / 280.2 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.152, allocations: 46.64 MB / 326.9 MB, free: 4.695 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004683/0.1568, allocations: 1.906 MB / 328.8 MB, free: 2.77 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001985/0.1588, allocations: 0.6164 MB / 329.4 MB, free: 2.145 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003698/0.1592, allocations: 7.938 kB / 329.4 MB, free: 2.137 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002874/0.1596, allocations: 19.84 kB / 329.4 MB, free: 2.117 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002858/0.1599, allocations: 23.73 kB / 329.4 MB, free: 2.094 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000517/0.1604, allocations: 59.95 kB / 329.5 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003147/0.1607, allocations: 171.3 kB / 329.7 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002806/0.161, allocations: 73.36 kB / 329.7 MB, free: 1.793 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.1612, allocations: 67.77 kB / 329.8 MB, free: 1.727 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.1615, allocations: 79.56 kB / 329.9 MB, free: 1.648 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.624e-05/0.1615, allocations: 15.94 kB / 329.9 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.74e-05/0.1616, allocations: 23.98 kB / 329.9 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.1617, allocations: 43.83 kB / 330 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.1619, allocations: 79.53 kB / 330 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003306/0.1622, allocations: 179.6 kB / 330.2 MB, free: 1.312 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1622, allocations: 4 kB / 330.2 MB, free: 1.309 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.1622, allocations: 0 / 330.2 MB, free: 1.309 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.1622, allocations: 0 / 330.2 MB, free: 1.309 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001231/0.1635, allocations: 0.5028 MB / 330.7 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.262e-05/0.1636, allocations: 8.031 kB / 330.7 MB, free: 0.75 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.84e-05/0.1636, allocations: 50.73 kB / 330.8 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.528e-05/0.1637, allocations: 20.66 kB / 330.8 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003719/0.1641, allocations: 239.7 kB / 331 MB, free: 408 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.1641, allocations: 12.66 kB / 331 MB, free: 396 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.1642, allocations: 12.38 kB / 331.1 MB, free: 384 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004283/0.1646, allocations: 203 kB / 331.3 MB, free: 164 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.1646, allocations: 4 kB / 331.3 MB, free: 160 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.1647, allocations: 8 kB / 331.3 MB, free: 152 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.845e-05/0.1647, allocations: 11.98 kB / 331.3 MB, free: 140 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003302/0.165, allocations: 147.8 kB / 331.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.1662, allocations: 0.7661 MB / 332.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000327/0.1665, allocations: 169 kB / 332.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.1667, allocations: 81.8 kB / 332.4 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.242e-05/0.1667, allocations: 0 / 332.4 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.167, allocations: 157 kB / 332.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.362e-06/0.167, allocations: 0 / 332.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005987/0.1676, allocations: 245.3 kB / 332.8 MB, free: 14.48 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.1677, allocations: 89.09 kB / 332.9 MB, free: 14.37 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001958/0.1679, allocations: 199 kB / 333.1 MB, free: 14.17 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.1679, allocations: 33.7 kB / 333.1 MB, free: 14.13 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.1681, allocations: 136.1 kB / 333.3 MB, free: 13.99 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.29e-05/0.1681, allocations: 47.45 kB / 333.3 MB, free: 13.94 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.383e-05/0.1682, allocations: 41.7 kB / 333.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002887/0.1685, allocations: 334.8 kB / 333.7 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.1687, allocations: 71.95 kB / 333.8 MB, free: 13.49 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.1689, allocations: 122.8 kB / 333.9 MB, free: 13.34 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003567/0.1692, allocations: 206.6 kB / 334.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1692, allocations: 0 / 334.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004175/0.1697, allocations: 245.7 kB / 334.3 MB, free: 12.87 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.1697, allocations: 4 kB / 334.3 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.1697, allocations: 4.109 kB / 334.3 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.532e-05/0.1697, allocations: 8.125 kB / 334.3 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.1699, allocations: 39.91 kB / 334.4 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.1699, allocations: 80 / 334.4 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.1701, allocations: 31.83 kB / 334.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.1701, allocations: 11.92 kB / 334.4 MB, free: 12.77 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001787/0.1703, allocations: 149.7 kB / 334.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.074e-05/0.1704, allocations: 15.81 kB / 334.6 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005157/0.1709, allocations: 210.9 kB / 334.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1709, allocations: 4 kB / 334.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1709, allocations: 0 / 334.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.1709, allocations: 3.984 kB / 334.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002902/0.1712, allocations: 269.4 kB / 335.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1712, allocations: 4 kB / 335.1 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.1714, allocations: 23.92 kB / 335.1 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1714, allocations: 0 / 335.1 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.1714, allocations: 0 / 335.1 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.1714, allocations: 12 kB / 335.1 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.1714, allocations: 0 / 335.1 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003992/0.1718, allocations: 229.5 kB / 335.3 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.977e-05/0.1719, allocations: 96.91 kB / 335.4 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.913e-05/0.1719, allocations: 0 / 335.4 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.1721, allocations: 19.98 kB / 335.4 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.456e-05/0.1721, allocations: 19.97 kB / 335.5 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.1722, allocations: 4 kB / 335.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001193/0.1723, allocations: 140.7 kB / 335.6 MB, free: 11.49 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1723, allocations: 3.938 kB / 335.6 MB, free: 11.48 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002537/0.1726, allocations: 43.84 kB / 335.6 MB, free: 11.44 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000832/0.1734, allocations: 0.7743 MB / 336.4 MB, free: 10.64 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004383/0.1738, allocations: 175.8 kB / 336.6 MB, free: 10.46 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1739, allocations: 384 / 336.6 MB, free: 10.46 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.174, allocations: 87.89 kB / 336.7 MB, free: 10.38 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.1745, allocations: 43.92 kB / 336.7 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002968/0.1774, allocations: 2.228 MB / 338.9 MB, free: 7.977 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/0.1779, allocations: 0.7436 MB / 339.7 MB, free: 7.207 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001257/0.178, allocations: 33.52 kB / 339.7 MB, free: 7.176 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.1782, allocations: 55.61 kB / 339.8 MB, free: 7.121 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1782, allocations: 0 / 339.8 MB, free: 7.121 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.1971, allocations: 3.857 MB / 343.6 MB, free: 3.254 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001887/0.1973, allocations: 186.9 kB / 343.8 MB, free: 2.996 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.136/2.333, allocations: 8 kB / 343.8 MB, free: 2.988 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches