Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00129/0.00129, allocations: 121.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001652/0.001652, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2464, allocations: 50.55 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003141/0.2495, allocations: 1.835 MB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001286/0.2509, allocations: 0.6932 MB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.988e-05/0.251, allocations: 4 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.2511, allocations: 35.59 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.2513, allocations: 27.72 kB / 411.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003254/0.2516, allocations: 95.77 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002489/0.2519, allocations: 175.4 kB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.2521, allocations: 74.62 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.2522, allocations: 83.64 kB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.2524, allocations: 91.59 kB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.853e-05/0.2524, allocations: 12 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.659e-05/0.2525, allocations: 24 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.552e-05/0.2526, allocations: 47.83 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.071e-05/0.2527, allocations: 87.47 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.253, allocations: 205.5 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.253, allocations: 0 / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.253, allocations: 0 / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.253, allocations: 0 / 412.2 MB, free: 14.05 MB / 334.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.0009506/0.254, allocations: 0.514 MB / 412.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.254, allocations: 12.03 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.63e-05/0.2541, allocations: 46.73 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.2543, allocations: 32.78 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.2546, allocations: 249.6 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.2546, allocations: 20.31 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.225e-05/0.2547, allocations: 16.38 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000402/0.2551, allocations: 217.4 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.2551, allocations: 0 / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.2551, allocations: 4 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.2551, allocations: 11.94 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.2555, allocations: 143.8 kB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.2566, allocations: 0.7857 MB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006232/0.2572, allocations: 186.6 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.2574, allocations: 60.83 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.2575, allocations: 8 kB / 414.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002925/0.2578, allocations: 141 kB / 414.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.2578, allocations: 4 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006183/0.2584, allocations: 241.3 kB / 414.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.16e-05/0.2585, allocations: 89.09 kB / 415 MB, free: 11.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.2587, allocations: 223.1 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.204e-05/0.2588, allocations: 33.7 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.2589, allocations: 140.4 kB / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.158e-05/0.259, allocations: 39.72 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.819e-05/0.2591, allocations: 57.64 kB / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.2592, allocations: 338.8 kB / 415.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.2594, allocations: 67.95 kB / 415.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.2596, allocations: 136.5 kB / 416 MB, free: 9.984 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003747/0.26, allocations: 216.6 kB / 416.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.26, allocations: 8 kB / 416.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004851/0.2605, allocations: 245.2 kB / 416.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.2605, allocations: 4 kB / 416.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.2606, allocations: 4 kB / 416.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.2606, allocations: 4 kB / 416.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.2608, allocations: 44.17 kB / 416.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.2608, allocations: 4.375 kB / 416.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.261, allocations: 39.75 kB / 416.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.261, allocations: 8 kB / 416.6 MB, free: 9.383 MB / 334.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.0001557/0.2611, allocations: 144 kB / 416.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.246e-05/0.2612, allocations: 19.84 kB / 416.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002717/0.2615, allocations: 139 kB / 416.9 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.2615, allocations: 4 kB / 416.9 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.2615, allocations: 0 / 416.9 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.2615, allocations: 3.938 kB / 416.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007301/0.2622, allocations: 482.2 kB / 417.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2623, allocations: 0 / 417.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.2624, allocations: 23.92 kB / 417.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2624, allocations: 0 / 417.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.2624, allocations: 3.938 kB / 417.4 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.2624, allocations: 8 kB / 417.4 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2624, allocations: 0 / 417.4 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004254/0.2629, allocations: 280.2 kB / 417.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.172e-05/0.2629, allocations: 96.94 kB / 417.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.263, allocations: 11.94 kB / 417.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.2632, allocations: 20.05 kB / 417.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.48e-05/0.2632, allocations: 27.91 kB / 417.8 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.2633, allocations: 7.984 kB / 417.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001389/0.2634, allocations: 148.7 kB / 418 MB, free: 7.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.974e-06/0.2634, allocations: 0 / 418 MB, free: 7.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000306/0.2637, allocations: 39.89 kB / 418 MB, free: 7.844 MB / 334.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.0008345/0.2646, allocations: 0.8341 MB / 418.8 MB, free: 6.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004254/0.265, allocations: 168.5 kB / 419 MB, free: 6.816 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.265, allocations: 4 kB / 419 MB, free: 6.812 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001808/0.2652, allocations: 79.83 kB / 419.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.2656, allocations: 43.45 kB / 419.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003008/0.2686, allocations: 2.233 MB / 421.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/0.269, allocations: 0.7398 MB / 422.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001102/0.2691, allocations: 37.52 kB / 422.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.2692, allocations: 59.42 kB / 422.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2693, allocations: 0 / 422.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02707/0.2963, allocations: 4.128 MB / 426.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.435/8.731, allocations: 4.047 kB / 426.3 MB, free: 15.39 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches