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.001545/0.001545, allocations: 109.4 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.001803/0.001803, allocations: 185.3 kB / 19.33 MB, free: 3.773 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.337/1.337, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001219/0.001219, allocations: 43.94 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07428/0.07551, allocations: 46.62 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002964/0.07851, allocations: 1.806 MB / 377.6 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.07974, allocations: 0.6667 MB / 378.3 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.07989, allocations: 4 kB / 378.3 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.08005, allocations: 43.59 kB / 378.3 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.0802, allocations: 27.72 kB / 378.4 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003134/0.08052, allocations: 83.78 kB / 378.4 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002424/0.08078, allocations: 171.5 kB / 378.6 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.08097, allocations: 78.61 kB / 378.7 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.0811, allocations: 71.66 kB / 378.7 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.08126, allocations: 87.59 kB / 378.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.0813, allocations: 12 kB / 378.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.676e-05/0.08139, allocations: 24 kB / 378.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.453e-05/0.08147, allocations: 43.83 kB / 378.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.69e-05/0.08157, allocations: 91.48 kB / 379 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.08183, allocations: 211.1 kB / 379.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.08184, allocations: 0 / 379.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.08185, allocations: 0 / 379.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.08186, allocations: 0 / 379.2 MB, free: 1.156 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.0009294/0.08279, allocations: 0.4986 MB / 379.7 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.08284, allocations: 11.97 kB / 379.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.309e-05/0.08292, allocations: 20.75 kB / 379.7 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002892/0.08322, allocations: 251.8 kB / 380 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.08324, allocations: 8.375 kB / 380 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.08328, allocations: 24.36 kB / 380 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003722/0.08366, allocations: 205.6 kB / 380.2 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.08368, allocations: 7.984 kB / 380.2 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.08371, allocations: 4 kB / 380.2 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/0.08374, allocations: 11.86 kB / 380.2 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1494/0.2331, allocations: 136.3 kB / 380.4 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.2343, allocations: 0.7789 MB / 381.2 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006246/0.2349, allocations: 191.4 kB / 381.3 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.2351, allocations: 60.86 kB / 381.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-05/0.2351, allocations: 9.406 kB / 381.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002799/0.2354, allocations: 149.8 kB / 381.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.074e-06/0.2354, allocations: 2.141 kB / 381.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000588/0.236, allocations: 244.3 kB / 381.8 MB, free: 12.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.236, allocations: 84.41 kB / 381.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.2362, allocations: 220.9 kB / 382.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.2363, allocations: 30.91 kB / 382.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.691e-05/0.2363, allocations: 137.8 kB / 382.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.079e-05/0.2364, allocations: 34.69 kB / 382.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.045e-05/0.2364, allocations: 60.02 kB / 382.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.135e-05/0.2365, allocations: 334.7 kB / 382.7 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.2367, allocations: 72.33 kB / 382.7 MB, free: 11.85 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.2369, allocations: 133.7 kB / 382.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000396/0.2373, allocations: 219.8 kB / 383.1 MB, free: 11.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.2373, allocations: 4.531 kB / 383.1 MB, free: 11.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005168/0.2378, allocations: 240.9 kB / 383.3 MB, free: 11.63 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.2378, allocations: 6.375 kB / 383.3 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.2379, allocations: 2.344 kB / 383.3 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.2379, allocations: 7.734 kB / 383.3 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.2381, allocations: 40.42 kB / 383.4 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.2381, allocations: 4.516 kB / 383.4 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000194/0.2383, allocations: 36.19 kB / 383.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.2384, allocations: 12.95 kB / 383.4 MB, free: 11.62 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.000142/0.2385, allocations: 155.5 kB / 383.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.883e-05/0.2386, allocations: 18.27 kB / 383.6 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002798/0.2389, allocations: 131.1 kB / 383.7 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2389, allocations: 2.594 kB / 383.7 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.2389, allocations: 0.875 kB / 383.7 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.2389, allocations: 3.812 kB / 383.7 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006189/0.2395, allocations: 478.8 kB / 384.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2395, allocations: 3.938 kB / 384.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.2397, allocations: 21.12 kB / 384.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.2397, allocations: 2.062 kB / 384.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.2397, allocations: 9.688 kB / 384.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.2397, allocations: 2.344 kB / 384.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2397, allocations: 0.5625 kB / 384.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000396/0.2401, allocations: 293.3 kB / 384.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.2402, allocations: 90.09 kB / 384.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.2402, allocations: 3.703 kB / 384.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.2404, allocations: 27.06 kB / 384.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.486e-05/0.2405, allocations: 23.64 kB / 384.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.2405, allocations: 5.359 kB / 384.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001057/0.2406, allocations: 149.6 kB / 384.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2406, allocations: 1.562 kB / 384.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.2409, allocations: 42.47 kB / 384.9 MB, free: 10.64 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.0001376/0.2411, allocations: 112.1 kB / 385 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003923/0.2415, allocations: 170.4 kB / 385.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2415, allocations: 1.188 kB / 385.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.2417, allocations: 77.3 kB / 385.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.242, allocations: 34.42 kB / 385.3 MB, free: 10.47 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006236/0.2427, allocations: 391.5 kB / 385.6 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001552/0.2428, allocations: 0.7359 MB / 386.4 MB, free: 9.512 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.826e-05/0.2429, allocations: 26.28 kB / 386.4 MB, free: 9.5 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2429, allocations: 0 / 386.4 MB, free: 9.5 MB / 318.1 MB Notification: Performance of Templates: time 0.005109/0.248, allocations: 2.478 MB / 388.9 MB, free: 9.281 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