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.00141/0.00141, allocations: 114.4 kB / 17.73 MB, free: 5.359 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.001426/0.001426, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.547/1.547, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001314/0.001315, allocations: 55.91 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09848/0.0998, allocations: 46.6 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003749/0.1036, allocations: 1.821 MB / 376.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.1054, allocations: 0.6707 MB / 377.6 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.1056, allocations: 4 kB / 377.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001718/0.1058, allocations: 35.66 kB / 377.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.106, allocations: 31.67 kB / 377.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003488/0.1063, allocations: 75.84 kB / 377.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000281/0.1066, allocations: 183.4 kB / 377.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.1068, allocations: 70.62 kB / 378 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.107, allocations: 79.64 kB / 378.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.1072, allocations: 83.61 kB / 378.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.049e-05/0.1072, allocations: 16 kB / 378.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.223e-05/0.1073, allocations: 27.98 kB / 378.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.739e-05/0.1074, allocations: 47.83 kB / 378.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.1075, allocations: 83.47 kB / 378.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003383/0.1079, allocations: 203.1 kB / 378.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1079, allocations: 0 / 378.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1079, allocations: 0 / 378.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1079, allocations: 0 / 378.5 MB, free: 1.152 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.001254/0.1092, allocations: 0.5064 MB / 379 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.1092, allocations: 8.031 kB / 379 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.313e-05/0.1093, allocations: 20.75 kB / 379.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.1097, allocations: 247.8 kB / 379.3 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.1097, allocations: 16.36 kB / 379.3 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.008e-05/0.1097, allocations: 12.38 kB / 379.3 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004288/0.1102, allocations: 217.6 kB / 379.6 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1102, allocations: 0 / 379.6 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.1103, allocations: 8 kB / 379.6 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.791e-05/0.1103, allocations: 7.859 kB / 379.6 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1703/0.2806, allocations: 143.8 kB / 379.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009714/0.2816, allocations: 0.7758 MB / 380.5 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005795/0.2822, allocations: 193 kB / 380.7 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.2824, allocations: 61.33 kB / 380.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/0.2824, allocations: 3.062 kB / 380.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.2827, allocations: 151.1 kB / 380.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.734e-06/0.2827, allocations: 2.734 kB / 380.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005385/0.2832, allocations: 240.3 kB / 381.1 MB, free: 12.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.2833, allocations: 88.41 kB / 381.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.2834, allocations: 215.7 kB / 381.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.2835, allocations: 31.64 kB / 381.4 MB, free: 12.31 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.411e-05/0.2835, allocations: 141.7 kB / 381.6 MB, free: 12.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.757e-05/0.2836, allocations: 37.23 kB / 381.6 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.562e-05/0.2837, allocations: 56.91 kB / 381.7 MB, free: 12.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.134e-05/0.2837, allocations: 336.7 kB / 382 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.2839, allocations: 67.14 kB / 382.1 MB, free: 11.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.284, allocations: 141.4 kB / 382.2 MB, free: 11.78 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003376/0.2844, allocations: 217.8 kB / 382.4 MB, free: 11.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2844, allocations: 0 / 382.4 MB, free: 11.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004881/0.2849, allocations: 253.5 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.2849, allocations: 5.812 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.285, allocations: 2.469 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.285, allocations: 4.281 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.2852, allocations: 37.09 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.2852, allocations: 4.438 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001899/0.2854, allocations: 37.7 kB / 382.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.2854, allocations: 13.39 kB / 382.8 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.0001728/0.2856, allocations: 149.1 kB / 382.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.671e-05/0.2857, allocations: 25.28 kB / 382.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.286, allocations: 129.4 kB / 383.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.286, allocations: 3.062 kB / 383.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.286, allocations: 1.219 kB / 383.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.286, allocations: 0.5625 kB / 383.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000651/0.2867, allocations: 484.8 kB / 383.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2867, allocations: 1.25 kB / 383.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.2868, allocations: 27.03 kB / 383.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.2868, allocations: 1.875 kB / 383.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.2869, allocations: 3.266 kB / 383.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.2869, allocations: 3.219 kB / 383.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.2869, allocations: 1.156 kB / 383.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004419/0.2873, allocations: 282.2 kB / 383.9 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-05/0.2874, allocations: 106.5 kB / 384 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.624e-05/0.2874, allocations: 2.734 kB / 384 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001675/0.2876, allocations: 19.38 kB / 384 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.2877, allocations: 22.92 kB / 384 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-05/0.2877, allocations: 7.297 kB / 384 MB, free: 10.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000128/0.2879, allocations: 149.5 kB / 384.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2879, allocations: 0 / 384.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003493/0.2882, allocations: 40.59 kB / 384.2 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.000195/0.2884, allocations: 112.5 kB / 384.3 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005144/0.289, allocations: 166.8 kB / 384.5 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.289, allocations: 7.875 kB / 384.5 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002052/0.2892, allocations: 78.06 kB / 384.6 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.0003692/0.2896, allocations: 37.69 kB / 384.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007613/0.2903, allocations: 354.1 kB / 384.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001805/0.2905, allocations: 0.7351 MB / 385.7 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.2906, allocations: 37.39 kB / 385.7 MB, free: 9.535 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.024e-05/0.2907, allocations: 24.36 kB / 385.7 MB, free: 9.523 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2907, allocations: 0 / 385.7 MB, free: 9.523 MB / 318.1 MB Notification: Performance of Templates: time 0.006062/0.2968, allocations: 2.11 MB / 387.8 MB, free: 9.387 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/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