Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 196.6 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.6 MB / 244.3 MB, free: 8.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00074/0.0007399, allocations: 105.7 kB / 296.4 MB, free: 7.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003305/0.0003306, allocations: 8 kB / 356.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2102/0.2106, allocations: 51.3 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001422/0.2121, allocations: 1.5 MB / 409 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007623/0.2128, allocations: 0.6307 MB / 409.6 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.764e-05/0.2129, allocations: 4 kB / 409.6 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.213, allocations: 23.72 kB / 409.6 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.2132, allocations: 12.5 kB / 409.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002129/0.2134, allocations: 67.86 kB / 409.7 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001413/0.2135, allocations: 164.4 kB / 409.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.2137, allocations: 56.92 kB / 409.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.2138, allocations: 60.55 kB / 410 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.801e-05/0.2139, allocations: 67.69 kB / 410.1 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.2139, allocations: 7.938 kB / 410.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.836e-05/0.214, allocations: 22.12 kB / 410.1 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.759e-05/0.2141, allocations: 35.89 kB / 410.1 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.604e-05/0.2141, allocations: 49.58 kB / 410.2 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.2142, allocations: 119.8 kB / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2142, allocations: 0 / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2143, allocations: 6.969 kB / 410.3 MB, free: 25.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.2143, allocations: 0 / 410.3 MB, free: 25.03 MB / 298.7 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.0006813/0.2149, allocations: 495.5 kB / 410.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.215, allocations: 12.03 kB / 410.8 MB, free: 24.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.2151, allocations: 27.8 kB / 410.8 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.2153, allocations: 238.6 kB / 411.1 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.2154, allocations: 12 kB / 411.1 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.2154, allocations: 23.89 kB / 411.1 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003246/0.2157, allocations: 209.5 kB / 411.3 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.2157, allocations: 7.984 kB / 411.3 MB, free: 23.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.2158, allocations: 4 kB / 411.3 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.2158, allocations: 11.86 kB / 411.3 MB, free: 23.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002791/0.2161, allocations: 147.8 kB / 411.5 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008457/0.2169, allocations: 0.7895 MB / 412.2 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000583/0.2175, allocations: 218.6 kB / 412.5 MB, free: 22.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.2177, allocations: 56.83 kB / 412.5 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.124e-05/0.2177, allocations: 7.938 kB / 412.5 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002266/0.2179, allocations: 155.8 kB / 412.7 MB, free: 22.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.2179, allocations: 4 kB / 412.7 MB, free: 22.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005053/0.2185, allocations: 253.3 kB / 412.9 MB, free: 22.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.779e-05/0.2185, allocations: 85.05 kB / 413 MB, free: 22.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.2186, allocations: 218.8 kB / 413.2 MB, free: 21.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.2187, allocations: 29.7 kB / 413.3 MB, free: 21.83 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.2187, allocations: 140.3 kB / 413.4 MB, free: 21.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.2187, allocations: 35.55 kB / 413.4 MB, free: 21.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.917e-06/0.2188, allocations: 4 kB / 413.4 MB, free: 21.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.657e-05/0.2188, allocations: 334.8 kB / 413.8 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.219, allocations: 67.95 kB / 413.8 MB, free: 21.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.2191, allocations: 144.5 kB / 414 MB, free: 21.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.2193, allocations: 79.91 kB / 414 MB, free: 21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.2193, allocations: 4 kB / 414 MB, free: 21 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00038/0.2197, allocations: 254.7 kB / 414.3 MB, free: 20.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.2197, allocations: 4 kB / 414.3 MB, free: 20.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.2197, allocations: 12.19 kB / 414.3 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.2197, allocations: 4 kB / 414.3 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.2199, allocations: 43.91 kB / 414.4 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.2199, allocations: 4 kB / 414.4 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.2201, allocations: 36.19 kB / 414.4 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.2201, allocations: 12 kB / 414.4 MB, free: 20.63 MB / 298.7 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 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.831e-05/0.2202, allocations: 155.9 kB / 414.6 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.254e-05/0.2202, allocations: 15.81 kB / 414.6 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.2204, allocations: 143.2 kB / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.2204, allocations: 4 kB / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2204, allocations: 0 / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2204, allocations: 0 / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004533/0.2209, allocations: 486.2 kB / 415.2 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2209, allocations: 0 / 415.2 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.221, allocations: 27.91 kB / 415.2 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.2211, allocations: 3.984 kB / 415.2 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.2211, allocations: 4 kB / 415.2 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2211, allocations: 0 / 415.2 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2211, allocations: 0 / 415.2 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003245/0.2214, allocations: 300 kB / 415.5 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.66e-05/0.2215, allocations: 92.83 kB / 415.6 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.909e-05/0.2215, allocations: 11.98 kB / 415.6 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.2217, allocations: 19.98 kB / 415.6 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.2217, allocations: 19.97 kB / 415.7 MB, free: 19.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.2217, allocations: 15.98 kB / 415.7 MB, free: 19.24 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.925e-05/0.2218, allocations: 140.4 kB / 415.8 MB, free: 19.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2218, allocations: 0 / 415.8 MB, free: 19.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002563/0.2221, allocations: 39.94 kB / 415.9 MB, free: 19.07 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000121/0.2222, allocations: 111.8 kB / 416 MB, free: 18.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003357/0.2226, allocations: 175.7 kB / 416.1 MB, free: 18.78 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2226, allocations: 0.5 kB / 416.1 MB, free: 18.78 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000155/0.2227, allocations: 88.02 kB / 416.2 MB, free: 18.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.2231, allocations: 39.55 kB / 416.3 MB, free: 18.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005519/0.2236, allocations: 425.3 kB / 416.7 MB, free: 18.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001251/0.2238, allocations: 0.7364 MB / 417.4 MB, free: 17.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.623e-05/0.2238, allocations: 19.44 kB / 417.4 MB, free: 17.43 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2238, allocations: 0 / 417.4 MB, free: 17.43 MB / 298.7 MB Notification: Performance of Templates: time 0.003262/0.2271, allocations: 2.408 MB / 419.8 MB, free: 15.04 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches