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: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 111.9 kB / 18.4 MB, free: 4.695 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.001184/0.001184, allocations: 186.3 kB / 19.33 MB, free: 3.777 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.24/1.24, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001145/0.001145, allocations: 43.94 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08834/0.0895, allocations: 46.62 MB / 375.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002986/0.09252, allocations: 1.822 MB / 377.6 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.0937, allocations: 0.6668 MB / 378.3 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.484e-05/0.09381, allocations: 8 kB / 378.3 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.09398, allocations: 27.67 kB / 378.3 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001345/0.09412, allocations: 31.66 kB / 378.4 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002916/0.09442, allocations: 79.84 kB / 378.4 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.09465, allocations: 179.4 kB / 378.6 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.09486, allocations: 74.62 kB / 378.7 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.09499, allocations: 79.62 kB / 378.8 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.09515, allocations: 79.62 kB / 378.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.152e-05/0.09519, allocations: 12 kB / 378.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.775e-05/0.09527, allocations: 27.98 kB / 378.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-05/0.09536, allocations: 51.83 kB / 378.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.544e-05/0.09545, allocations: 87.47 kB / 379 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002539/0.09571, allocations: 199.1 kB / 379.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.09572, allocations: 0 / 379.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.09573, allocations: 0 / 379.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.09574, allocations: 0 / 379.2 MB, free: 1.16 MB / 318.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.0009041/0.09665, allocations: 0.5025 MB / 379.7 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.0967, allocations: 8.031 kB / 379.7 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.618e-05/0.09676, allocations: 24.75 kB / 379.7 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.09706, allocations: 247.8 kB / 380 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.09709, allocations: 12.38 kB / 380 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.09713, allocations: 16.38 kB / 380 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004234/0.09756, allocations: 217.5 kB / 380.2 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.09758, allocations: 0 / 380.2 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.09761, allocations: 11.98 kB / 380.2 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.09764, allocations: 11.86 kB / 380.2 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1769/0.2746, allocations: 142.9 kB / 380.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.2756, allocations: 0.7771 MB / 381.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005742/0.2762, allocations: 194.1 kB / 381.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/0.2764, allocations: 59.36 kB / 381.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.74e-05/0.2764, allocations: 6.938 kB / 381.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002425/0.2767, allocations: 146.9 kB / 381.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.014e-06/0.2767, allocations: 0 / 381.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005282/0.2772, allocations: 246.3 kB / 381.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.2772, allocations: 88.03 kB / 381.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.2774, allocations: 212.9 kB / 382.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.2774, allocations: 33.06 kB / 382.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.21e-05/0.2775, allocations: 136.5 kB / 382.3 MB, free: 12.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.821e-05/0.2776, allocations: 45.14 kB / 382.3 MB, free: 12.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.332e-05/0.2776, allocations: 54.94 kB / 382.4 MB, free: 12.58 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.547e-05/0.2777, allocations: 334.3 kB / 382.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.2778, allocations: 71.86 kB / 382.8 MB, free: 12.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.278, allocations: 133.9 kB / 382.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003249/0.2783, allocations: 225.2 kB / 383.1 MB, free: 12 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2784, allocations: 0 / 383.1 MB, free: 12 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004671/0.2788, allocations: 244.7 kB / 383.3 MB, free: 11.9 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.2789, allocations: 6.422 kB / 383.3 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.2789, allocations: 2.312 kB / 383.4 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.2789, allocations: 3.875 kB / 383.4 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.2791, allocations: 42.06 kB / 383.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.2791, allocations: 4.359 kB / 383.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001682/0.2793, allocations: 30.61 kB / 383.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.2793, allocations: 15.95 kB / 383.4 MB, free: 11.88 MB / 318.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.0001201/0.2794, allocations: 147.9 kB / 383.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.722e-05/0.2795, allocations: 20.03 kB / 383.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002419/0.2797, allocations: 134.3 kB / 383.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.2797, allocations: 2.375 kB / 383.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2798, allocations: 1.562 kB / 383.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2798, allocations: 2.375 kB / 383.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000505/0.2803, allocations: 478.6 kB / 384.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2803, allocations: 0 / 384.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.2804, allocations: 26.89 kB / 384.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.2804, allocations: 9.406 kB / 384.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.2804, allocations: 2.625 kB / 384.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2804, allocations: 1.25 kB / 384.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2805, allocations: 3.234 kB / 384.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003456/0.2808, allocations: 281.3 kB / 384.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.153e-05/0.2808, allocations: 99.83 kB / 384.6 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.212e-05/0.2809, allocations: 6.047 kB / 384.6 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.2811, allocations: 19.77 kB / 384.7 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.092e-05/0.2812, allocations: 31.45 kB / 384.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.2812, allocations: 5.609 kB / 384.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001313/0.2813, allocations: 145.1 kB / 384.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2813, allocations: 0 / 384.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003115/0.2816, allocations: 45.17 kB / 384.9 MB, free: 10.87 MB / 318.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.000137/0.2818, allocations: 108.2 kB / 385 MB, free: 10.78 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003957/0.2822, allocations: 170.8 kB / 385.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2822, allocations: 0 / 385.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.2824, allocations: 81.05 kB / 385.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.2827, allocations: 39.39 kB / 385.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000644/0.2834, allocations: 386.8 kB / 385.6 MB, free: 10.44 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.2836, allocations: 0.7335 MB / 386.4 MB, free: 9.738 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.728e-05/0.2836, allocations: 21.33 kB / 386.4 MB, free: 9.73 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2837, allocations: 0 / 386.4 MB, free: 9.73 MB / 318.1 MB Notification: Performance of Templates: time 0.004628/0.2883, allocations: 2.448 MB / 388.8 MB, free: 9.527 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile (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 & ./Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","/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