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.001322/0.001322, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.001457/0.001457, allocations: 195.3 kB / 19.18 MB, free: 3.977 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.388/1.388, allocations: 205.1 MB / 225 MB, free: 12.32 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.001354/0.001354, allocations: 55.94 kB / 281.3 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08686/0.08823, allocations: 46.63 MB / 327.9 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.004019/0.09229, allocations: 1.816 MB / 329.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.0938, allocations: 0.6592 MB / 330.4 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.09401, allocations: 7.938 kB / 330.4 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.09421, allocations: 31.66 kB / 330.5 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002122/0.09444, allocations: 27.73 kB / 330.5 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004283/0.09487, allocations: 95.7 kB / 330.6 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002851/0.09517, allocations: 163.5 kB / 330.7 MB, free: 1.656 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.09539, allocations: 70.64 kB / 330.8 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.09555, allocations: 79.64 kB / 330.9 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.09574, allocations: 87.59 kB / 331 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.09579, allocations: 12 kB / 331 MB, free: 1.41 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.934e-05/0.09589, allocations: 24 kB / 331 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.892e-05/0.09597, allocations: 39.84 kB / 331 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.954e-05/0.09608, allocations: 83.47 kB / 331.1 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.09637, allocations: 199.5 kB / 331.3 MB, free: 1.07 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.09638, allocations: 0 / 331.3 MB, free: 1.07 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.09639, allocations: 0 / 331.3 MB, free: 1.07 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.09641, allocations: 0 / 331.3 MB, free: 1.07 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.001049/0.09746, allocations: 0.4986 MB / 331.8 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.09752, allocations: 8.031 kB / 331.8 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.433e-05/0.0976, allocations: 24.66 kB / 331.8 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.09791, allocations: 251.8 kB / 332.1 MB, free: 212 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.09794, allocations: 20.34 kB / 332.1 MB, free: 192 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.862e-05/0.09798, allocations: 16.38 kB / 332.1 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004284/0.09841, allocations: 217.2 kB / 332.3 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.09844, allocations: 4 kB / 332.3 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.113e-05/0.09846, allocations: 7.938 kB / 332.4 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.936e-05/0.0985, allocations: 12 kB / 332.4 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003482/0.09885, allocations: 139.7 kB / 332.5 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.09999, allocations: 0.7816 MB / 333.3 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006647/0.1007, allocations: 186.7 kB / 333.5 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.1008, allocations: 64.81 kB / 333.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.282e-05/0.1009, allocations: 4 kB / 333.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002769/0.1012, allocations: 155.5 kB / 333.7 MB, free: 14.51 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.893e-06/0.1012, allocations: 0 / 333.7 MB, free: 14.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.000628/0.1018, allocations: 237.3 kB / 333.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.1019, allocations: 89.03 kB / 334 MB, free: 14.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002032/0.1021, allocations: 214.7 kB / 334.2 MB, free: 13.94 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.1021, allocations: 29.7 kB / 334.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.41e-05/0.1022, allocations: 156.2 kB / 334.4 MB, free: 13.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.1023, allocations: 31.56 kB / 334.4 MB, free: 13.72 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.528e-05/0.1024, allocations: 57.69 kB / 334.5 MB, free: 13.66 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.1025, allocations: 334.8 kB / 334.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.1027, allocations: 67.95 kB / 334.9 MB, free: 13.25 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.1029, allocations: 132.5 kB / 335 MB, free: 13.09 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003502/0.1032, allocations: 204.4 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1033, allocations: 0 / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004786/0.1037, allocations: 261.2 kB / 335.5 MB, free: 12.6 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1038, allocations: 4 kB / 335.5 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.1038, allocations: 8.062 kB / 335.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.1038, allocations: 4 kB / 335.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.104, allocations: 39.91 kB / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.104, allocations: 4 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001858/0.1042, allocations: 36.06 kB / 335.5 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.1042, allocations: 16.31 kB / 335.6 MB, free: 12.49 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.0001409/0.1044, allocations: 144 kB / 335.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.482e-05/0.1044, allocations: 15.81 kB / 335.7 MB, free: 12.33 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002736/0.1047, allocations: 142.9 kB / 335.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.1047, allocations: 0 / 335.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.1047, allocations: 4 kB / 335.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.1047, allocations: 0 / 335.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006207/0.1054, allocations: 486.2 kB / 336.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1054, allocations: 0 / 336.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.1055, allocations: 15.98 kB / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.1055, allocations: 0 / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.1055, allocations: 7.984 kB / 336.4 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.1056, allocations: 7.875 kB / 336.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1056, allocations: 0 / 336.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004259/0.106, allocations: 288.1 kB / 336.7 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.395e-05/0.1061, allocations: 96.77 kB / 336.7 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.689e-05/0.1061, allocations: 7.984 kB / 336.8 MB, free: 11.19 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.1063, allocations: 19.92 kB / 336.8 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.356e-05/0.1064, allocations: 23.97 kB / 336.8 MB, free: 11.15 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.1064, allocations: 8 kB / 336.8 MB, free: 11.14 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001259/0.1065, allocations: 148.4 kB / 337 MB, free: 11 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1066, allocations: 3.938 kB / 337 MB, free: 10.99 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003306/0.1069, allocations: 39.98 kB / 337 MB, free: 10.95 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.0001579/0.1071, allocations: 111.2 kB / 337.1 MB, free: 10.84 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004523/0.1075, allocations: 180 kB / 337.3 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.1075, allocations: 0 / 337.3 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001937/0.1077, allocations: 75.89 kB / 337.4 MB, free: 10.59 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003722/0.1081, allocations: 48.42 kB / 337.4 MB, free: 10.54 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007958/0.1089, allocations: 395.6 kB / 337.8 MB, free: 10.12 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.1092, allocations: 0.7319 MB / 338.5 MB, free: 9.359 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.657e-05/0.1093, allocations: 23.42 kB / 338.5 MB, free: 9.336 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1093, allocations: 0 / 338.5 MB, free: 9.336 MB / 286.1 MB Notification: Performance of Templates: time 0.004964/0.1143, allocations: 2.429 MB / 341 MB, free: 6.906 MB / 286.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