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.00121/0.00121, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001144/0.001144, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.358/1.358, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001146/0.001146, allocations: 56.14 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0804/0.08156, allocations: 46.62 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003407/0.08502, allocations: 1.809 MB / 329.2 MB, free: 2.555 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.08634, allocations: 0.6756 MB / 329.9 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.264e-05/0.08645, allocations: 0 / 329.9 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.08658, allocations: 31.67 kB / 329.9 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.08672, allocations: 39.53 kB / 329.9 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.087, allocations: 79.84 kB / 330 MB, free: 1.723 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002113/0.08722, allocations: 167.5 kB / 330.2 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.08741, allocations: 74.62 kB / 330.2 MB, free: 1.484 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.08753, allocations: 79.64 kB / 330.3 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.08769, allocations: 83.61 kB / 330.4 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.961e-05/0.08773, allocations: 20 kB / 330.4 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.718e-05/0.08782, allocations: 23.98 kB / 330.4 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.91e-05/0.08789, allocations: 43.84 kB / 330.5 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.279e-05/0.08798, allocations: 87.45 kB / 330.6 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.08822, allocations: 191.5 kB / 330.8 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.08823, allocations: 0 / 330.8 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.08824, allocations: 0 / 330.8 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.08825, allocations: 0 / 330.8 MB, free: 0.9648 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.000871/0.08912, allocations: 0.4948 MB / 331.2 MB, free: 432 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.08916, allocations: 16.02 kB / 331.3 MB, free: 416 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.212e-05/0.08924, allocations: 46.73 kB / 331.3 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.291e-05/0.0893, allocations: 24.66 kB / 331.3 MB, free: 336 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.08956, allocations: 247.8 kB / 331.6 MB, free: 48 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.08959, allocations: 16.31 kB / 331.6 MB, free: 32 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.567e-05/0.08962, allocations: 16.38 kB / 331.6 MB, free: 16 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003762/0.09, allocations: 217.5 kB / 331.8 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.09002, allocations: 4 kB / 331.8 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.09005, allocations: 4 kB / 331.8 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.278e-05/0.09007, allocations: 8 kB / 331.8 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003084/0.09039, allocations: 143.7 kB / 332 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009913/0.09139, allocations: 0.7971 MB / 332.8 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005838/0.09198, allocations: 182.6 kB / 333 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.09214, allocations: 64.83 kB / 333 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.09218, allocations: 4 kB / 333 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.09244, allocations: 148.9 kB / 333.2 MB, free: 14.35 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.09245, allocations: 0 / 333.2 MB, free: 14.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005676/0.09302, allocations: 249.5 kB / 333.4 MB, free: 14.1 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.09309, allocations: 81.11 kB / 333.5 MB, free: 14 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.0933, allocations: 226.7 kB / 333.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.09333, allocations: 33.64 kB / 333.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.457e-05/0.09343, allocations: 136.3 kB / 333.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.09347, allocations: 43.53 kB / 333.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.612e-05/0.09355, allocations: 53.69 kB / 334 MB, free: 13.49 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.09367, allocations: 330.8 kB / 334.3 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.09383, allocations: 71.95 kB / 334.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.09403, allocations: 132.5 kB / 334.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003287/0.09436, allocations: 216.6 kB / 334.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.09438, allocations: 4 kB / 334.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004278/0.09481, allocations: 257 kB / 335 MB, free: 12.42 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.09484, allocations: 4 kB / 335 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.09485, allocations: 4 kB / 335 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.09487, allocations: 8.25 kB / 335 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.09504, allocations: 31.92 kB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.09506, allocations: 4 kB / 335 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001677/0.09523, allocations: 39.75 kB / 335 MB, free: 12.33 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.618e-05/0.09526, allocations: 8 kB / 335.1 MB, free: 12.32 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.0001275/0.09539, allocations: 148 kB / 335.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.09543, allocations: 15.81 kB / 335.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002315/0.09567, allocations: 135 kB / 335.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.09568, allocations: 0 / 335.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.09569, allocations: 4 kB / 335.4 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.361e-06/0.0957, allocations: 3.938 kB / 335.4 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005634/0.09627, allocations: 482.2 kB / 335.8 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.09628, allocations: 0 / 335.8 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.0964, allocations: 19.92 kB / 335.8 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.09642, allocations: 4 kB / 335.8 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.09644, allocations: 11.94 kB / 335.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.09645, allocations: 0 / 335.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.09645, allocations: 192 / 335.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003999/0.09686, allocations: 293.3 kB / 336.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.338e-05/0.09692, allocations: 100.8 kB / 336.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.09696, allocations: 7.938 kB / 336.3 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.09713, allocations: 19.98 kB / 336.3 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.994e-05/0.09722, allocations: 19.97 kB / 336.3 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.09725, allocations: 11.98 kB / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.09736, allocations: 148.4 kB / 336.4 MB, free: 10.82 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09737, allocations: 0 / 336.4 MB, free: 10.82 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002998/0.09768, allocations: 39.94 kB / 336.5 MB, free: 10.78 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.0006869/0.09837, allocations: 0.8385 MB / 337.3 MB, free: 9.914 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003821/0.09876, allocations: 176.2 kB / 337.5 MB, free: 9.742 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.09877, allocations: 0 / 337.5 MB, free: 9.742 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.09895, allocations: 79.89 kB / 337.6 MB, free: 9.664 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.0993, allocations: 34.12 kB / 337.6 MB, free: 9.633 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.1018, allocations: 2.215 MB / 339.8 MB, free: 7.273 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.1021, allocations: 0.7358 MB / 340.6 MB, free: 6.512 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001002/0.1022, allocations: 37.47 kB / 340.6 MB, free: 6.477 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.1023, allocations: 63.41 kB / 340.7 MB, free: 6.414 MB / 286.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1023, allocations: 0 / 340.7 MB, free: 6.414 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.1224, allocations: 4.024 MB / 344.7 MB, free: 2.332 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.555/7.677, allocations: 4.156 kB / 344.7 MB, free: 2.328 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches