Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_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_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002773/0.00278, allocations: 182.6 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.459/3.459, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001848/0.001848, allocations: 99.27 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006121/0.0006124, allocations: 12 kB / 326.9 MB, free: 224 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4855/0.4861, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003586/0.4898, allocations: 1.478 MB / 376 MB, free: 44.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.492, allocations: 0.6238 MB / 376.6 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001901/0.4923, allocations: 3.375 kB / 376.6 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.4925, allocations: 15.86 kB / 376.6 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002229/0.4927, allocations: 33.27 kB / 376.7 MB, free: 43.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004918/0.4932, allocations: 68.31 kB / 376.7 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003514/0.4936, allocations: 112.5 kB / 376.8 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002775/0.4939, allocations: 55.58 kB / 376.9 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002142/0.4942, allocations: 58.08 kB / 377 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002198/0.4944, allocations: 69.69 kB / 377 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.494e-05/0.4945, allocations: 9.5 kB / 377 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.4946, allocations: 12.05 kB / 377 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.482e-05/0.4947, allocations: 34.06 kB / 377.1 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.865e-05/0.4948, allocations: 48.05 kB / 377.1 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002912/0.4951, allocations: 113.2 kB / 377.2 MB, free: 43.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.4951, allocations: 0 / 377.2 MB, free: 43.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4952, allocations: 5.156 kB / 377.2 MB, free: 43.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.4952, allocations: 0 / 377.2 MB, free: 43.34 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.00153/0.4967, allocations: 0.4928 MB / 377.7 MB, free: 42.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/0.4968, allocations: 13.03 kB / 377.7 MB, free: 42.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.4969, allocations: 19.03 kB / 377.8 MB, free: 42.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.4974, allocations: 228.4 kB / 378 MB, free: 42.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.863e-05/0.4975, allocations: 23.39 kB / 378 MB, free: 42.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.263e-05/0.4975, allocations: 19.05 kB / 378 MB, free: 42.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008826/0.4985, allocations: 218.1 kB / 378.2 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.4985, allocations: 0 / 378.2 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.4986, allocations: 6.469 kB / 378.2 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-05/0.4986, allocations: 10.11 kB / 378.3 MB, free: 42.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008526/0.4995, allocations: 143 kB / 378.4 MB, free: 42.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002256/0.5018, allocations: 0.8015 MB / 379.2 MB, free: 41.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.5034, allocations: 210.4 kB / 379.4 MB, free: 41.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.995e-05/0.5035, allocations: 10.45 kB / 379.4 MB, free: 41.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006074/0.5042, allocations: 142.9 kB / 379.6 MB, free: 41.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 4.93e-06/0.5042, allocations: 0 / 379.6 MB, free: 41.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.001514/0.5057, allocations: 262 kB / 379.8 MB, free: 41.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.5058, allocations: 79.3 kB / 379.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004108/0.5063, allocations: 225.5 kB / 380.1 MB, free: 41.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.658e-05/0.5063, allocations: 27.86 kB / 380.1 MB, free: 41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.5065, allocations: 193.7 kB / 380.3 MB, free: 40.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.06e-05/0.5066, allocations: 42.03 kB / 380.4 MB, free: 40.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.33e-05/0.5066, allocations: 9 kB / 380.4 MB, free: 40.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.574e-05/0.5067, allocations: 325.2 kB / 380.7 MB, free: 40.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004034/0.5071, allocations: 68.23 kB / 380.8 MB, free: 40.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00047/0.5076, allocations: 146.4 kB / 380.9 MB, free: 40.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004583/0.5081, allocations: 79.22 kB / 381 MB, free: 40.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.665e-06/0.5082, allocations: 1.375 kB / 381 MB, free: 40.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001143/0.5093, allocations: 248.5 kB / 381.2 MB, free: 40.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.5094, allocations: 5.531 kB / 381.2 MB, free: 40.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.5094, allocations: 2.375 kB / 381.2 MB, free: 40.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.084e-05/0.5095, allocations: 8.156 kB / 381.2 MB, free: 40.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004913/0.51, allocations: 41.47 kB / 381.3 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.061e-05/0.51, allocations: 7.5 kB / 381.3 MB, free: 40.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004863/0.5105, allocations: 47.58 kB / 381.3 MB, free: 40.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.5106, allocations: 6.688 kB / 381.3 MB, free: 40.09 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 0.0002733/0.5109, allocations: 152.9 kB / 381.5 MB, free: 39.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.249e-05/0.511, allocations: 16.81 kB / 381.5 MB, free: 39.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005588/0.5115, allocations: 133.3 kB / 381.6 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.5116, allocations: 2.188 kB / 381.6 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.5116, allocations: 5.188 kB / 381.6 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.5116, allocations: 5.266 kB / 381.6 MB, free: 39.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.5129, allocations: 480.6 kB / 382.1 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.513, allocations: 1.344 kB / 382.1 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003368/0.5133, allocations: 19.14 kB / 382.1 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.107e-05/0.5134, allocations: 1.5 kB / 382.1 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.33e-05/0.5134, allocations: 5.625 kB / 382.1 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.844e-06/0.5134, allocations: 1.344 kB / 382.1 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/0.5135, allocations: 9.234 kB / 382.2 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.5145, allocations: 312.3 kB / 382.5 MB, free: 39.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.027e-05/0.5147, allocations: 94.64 kB / 382.6 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.71e-05/0.5148, allocations: 6 kB / 382.6 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004614/0.5152, allocations: 26.25 kB / 382.6 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.5154, allocations: 24.83 kB / 382.6 MB, free: 39.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.225e-05/0.5155, allocations: 5.438 kB / 382.6 MB, free: 39.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002528/0.5157, allocations: 149.9 kB / 382.8 MB, free: 38.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.5158, allocations: 1.062 kB / 382.8 MB, free: 38.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007509/0.5165, allocations: 46.33 kB / 382.8 MB, free: 38.9 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.0002482/0.5168, allocations: 110.4 kB / 382.9 MB, free: 38.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.5179, allocations: 174.6 kB / 383.1 MB, free: 38.74 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.518, allocations: 0 / 383.1 MB, free: 38.74 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004715/0.5185, allocations: 84.92 kB / 383.2 MB, free: 38.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006026/0.5191, allocations: 26.25 kB / 383.2 MB, free: 38.69 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.5206, allocations: 435.6 kB / 383.6 MB, free: 38.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.5209, allocations: 0.7363 MB / 384.4 MB, free: 37.63 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.5211, allocations: 27.7 kB / 384.4 MB, free: 37.61 MB / 298.7 MB Notification: Performance of SimCode: time 1.563e-06/0.5211, allocations: 3.938 kB / 384.4 MB, free: 37.61 MB / 298.7 MB Notification: Performance of Templates: time 0.009885/0.531, allocations: 2.363 MB / 386.7 MB, free: 36.15 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches