Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",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.001559/0.001559, allocations: 114.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.001509/0.001509, allocations: 185.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.828/1.828, 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.001785/0.001785, allocations: 43.94 kB / 280.2 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1499, allocations: 46.63 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.004114/0.154, allocations: 1.874 MB / 328.7 MB, free: 2.812 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.1554, allocations: 0.6514 MB / 329.4 MB, free: 2.152 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.1556, allocations: 8 kB / 329.4 MB, free: 2.145 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001949/0.1558, allocations: 23.8 kB / 329.4 MB, free: 2.121 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001641/0.156, allocations: 27.72 kB / 329.4 MB, free: 2.094 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003834/0.1564, allocations: 75.86 kB / 329.5 MB, free: 2.02 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.1566, allocations: 163.5 kB / 329.7 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002365/0.1569, allocations: 78.62 kB / 329.8 MB, free: 1.781 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.157, allocations: 71.64 kB / 329.8 MB, free: 1.711 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.1572, allocations: 87.59 kB / 329.9 MB, free: 1.625 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.293e-05/0.1573, allocations: 16 kB / 329.9 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.911e-05/0.1574, allocations: 20 kB / 330 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.1575, allocations: 47.84 kB / 330 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.1576, allocations: 91.41 kB / 330.1 MB, free: 1.453 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003409/0.158, allocations: 187.5 kB / 330.3 MB, free: 1.27 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.158, allocations: 0 / 330.3 MB, free: 1.27 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.158, allocations: 0 / 330.3 MB, free: 1.27 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.158, allocations: 0 / 330.3 MB, free: 1.27 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001204/0.1592, allocations: 0.4986 MB / 330.8 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.83e-05/0.1593, allocations: 12.03 kB / 330.8 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.681e-05/0.1594, allocations: 50.73 kB / 330.8 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.311e-05/0.1595, allocations: 32.59 kB / 330.9 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003625/0.1598, allocations: 239.8 kB / 331.1 MB, free: 356 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.906e-05/0.1599, allocations: 12.38 kB / 331.1 MB, free: 344 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.203e-05/0.1599, allocations: 24.36 kB / 331.1 MB, free: 320 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004613/0.1604, allocations: 213.1 kB / 331.3 MB, free: 88 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1604, allocations: 7.938 kB / 331.3 MB, free: 80 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.381e-05/0.1605, allocations: 4 kB / 331.4 MB, free: 76 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.281e-05/0.1605, allocations: 12 kB / 331.4 MB, free: 64 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003756/0.1609, allocations: 139.7 kB / 331.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.162, allocations: 0.7777 MB / 332.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006605/0.1627, allocations: 190.6 kB / 332.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.1628, allocations: 64.81 kB / 332.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.732e-05/0.1629, allocations: 0 / 332.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003031/0.1632, allocations: 156.9 kB / 332.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 2.304e-06/0.1632, allocations: 0 / 332.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006227/0.1639, allocations: 237.3 kB / 332.9 MB, free: 14.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.508e-05/0.164, allocations: 81.09 kB / 333 MB, free: 14.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.1642, allocations: 226.6 kB / 333.2 MB, free: 14.08 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/0.1642, allocations: 33.7 kB / 333.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.1644, allocations: 140.2 kB / 333.4 MB, free: 13.9 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.004e-05/0.1644, allocations: 35.56 kB / 333.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.209e-05/0.1645, allocations: 53.69 kB / 333.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.1647, allocations: 338.8 kB / 333.8 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.1649, allocations: 68.2 kB / 333.9 MB, free: 13.4 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.1651, allocations: 136.5 kB / 334 MB, free: 13.24 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000352/0.1655, allocations: 208.4 kB / 334.2 MB, free: 13 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.1655, allocations: 0 / 334.2 MB, free: 13 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004677/0.1659, allocations: 261 kB / 334.5 MB, free: 12.74 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.166, allocations: 4 kB / 334.5 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.166, allocations: 4 kB / 334.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.072e-05/0.166, allocations: 4.375 kB / 334.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.1662, allocations: 35.91 kB / 334.5 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.1663, allocations: 12.19 kB / 334.5 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.1664, allocations: 39.75 kB / 334.6 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.1665, allocations: 15.94 kB / 334.6 MB, free: 12.63 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001875/0.1667, allocations: 148 kB / 334.7 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/0.1667, allocations: 15.81 kB / 334.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003114/0.167, allocations: 127 kB / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.167, allocations: 4 kB / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.488e-05/0.1671, allocations: 7.938 kB / 334.9 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.1671, allocations: 3.938 kB / 334.9 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007644/0.1679, allocations: 478.2 kB / 335.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1679, allocations: 0 / 335.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.168, allocations: 19.98 kB / 335.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.168, allocations: 4 kB / 335.4 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.1681, allocations: 7.922 kB / 335.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1681, allocations: 4 kB / 335.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1681, allocations: 4 kB / 335.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005308/0.1686, allocations: 288.1 kB / 335.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.1687, allocations: 92.83 kB / 335.7 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.1688, allocations: 11.92 kB / 335.8 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.169, allocations: 19.98 kB / 335.8 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.1691, allocations: 19.97 kB / 335.8 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/0.1692, allocations: 11.94 kB / 335.8 MB, free: 11.27 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001637/0.1693, allocations: 140.6 kB / 335.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1693, allocations: 0 / 335.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003251/0.1697, allocations: 47.92 kB / 336 MB, free: 11.09 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: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * 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.0009321/0.1706, allocations: 0.8301 MB / 336.8 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004656/0.1711, allocations: 180.4 kB / 337 MB, free: 10.05 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1711, allocations: 7.938 kB / 337 MB, free: 10.05 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001825/0.1713, allocations: 79.89 kB / 337.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003764/0.1717, allocations: 31.88 kB / 337.1 MB, free: 9.938 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003213/0.1749, allocations: 2.261 MB / 339.4 MB, free: 7.535 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.1753, allocations: 0.732 MB / 340.1 MB, free: 6.777 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.1755, allocations: 37.53 kB / 340.1 MB, free: 6.742 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.1756, allocations: 67.41 kB / 340.2 MB, free: 6.676 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1756, allocations: 0 / 340.2 MB, free: 6.676 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01903/0.1946, allocations: 3.812 MB / 344 MB, free: 2.855 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002513/0.1949, allocations: 190.9 kB / 344.2 MB, free: 2.598 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.105/2.3, allocations: 0 / 344.2 MB, free: 2.598 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches