Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001752/0.001752, allocations: 122.5 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001959/0.001959, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 63.89 kB / 373.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1317, allocations: 53.32 MB / 427.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003392/0.1351, allocations: 1.859 MB / 429 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.1365, allocations: 0.6972 MB / 429.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.594e-05/0.1365, allocations: 11.94 kB / 429.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.896e-05/0.1366, allocations: 23.67 kB / 429.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.698e-05/0.1367, allocations: 31.72 kB / 429.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002523/0.137, allocations: 91.77 kB / 429.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002501/0.1372, allocations: 179.4 kB / 430 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.1374, allocations: 54.64 kB / 430.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.1376, allocations: 83.69 kB / 430.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.1378, allocations: 91.55 kB / 430.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.174e-05/0.1378, allocations: 16 kB / 430.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.591e-05/0.1379, allocations: 24 kB / 430.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.583e-05/0.138, allocations: 47.77 kB / 430.3 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.1381, allocations: 87.47 kB / 430.4 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.1384, allocations: 203 kB / 430.6 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.1384, allocations: 0 / 430.6 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.1384, allocations: 7.938 kB / 430.6 MB, free: 0.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.1384, allocations: 0 / 430.6 MB, free: 0.957 MB / 350.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.0009969/0.1394, allocations: 0.514 MB / 431.2 MB, free: 404 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.1394, allocations: 12.03 kB / 431.2 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/0.1396, allocations: 28.8 kB / 431.2 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.14, allocations: 256.7 kB / 431.4 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.14, allocations: 12.38 kB / 431.5 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.638e-05/0.14, allocations: 24.38 kB / 431.5 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004389/0.1405, allocations: 205.7 kB / 431.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.1405, allocations: 0 / 431.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.1405, allocations: 11.98 kB / 431.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/0.1405, allocations: 11.94 kB / 431.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.1409, allocations: 135.9 kB / 431.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.142, allocations: 0.7778 MB / 432.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000609/0.1426, allocations: 186.6 kB / 432.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.1427, allocations: 60.81 kB / 432.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.605e-05/0.1427, allocations: 8 kB / 432.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002712/0.143, allocations: 141 kB / 433 MB, free: 14.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/0.143, allocations: 0 / 433 MB, free: 14.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005686/0.1436, allocations: 241.4 kB / 433.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.96e-05/0.1436, allocations: 89.09 kB / 433.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002283/0.1439, allocations: 223.1 kB / 433.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.1439, allocations: 33.7 kB / 433.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.542e-05/0.144, allocations: 140.4 kB / 433.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.363e-05/0.144, allocations: 35.75 kB / 433.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.845e-05/0.1441, allocations: 61.64 kB / 433.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1443, allocations: 334.8 kB / 434.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/0.1445, allocations: 63.95 kB / 434.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.1447, allocations: 144.5 kB / 434.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003655/0.1451, allocations: 208.3 kB / 434.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1451, allocations: 4 kB / 434.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004918/0.1455, allocations: 241.3 kB / 434.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.1456, allocations: 7.938 kB / 434.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.1456, allocations: 4 kB / 434.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.1456, allocations: 4 kB / 434.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.1458, allocations: 40.53 kB / 434.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.1458, allocations: 8 kB / 434.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.1459, allocations: 35.81 kB / 434.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.146, allocations: 15.94 kB / 434.9 MB, free: 12.37 MB / 366.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.000157/0.1461, allocations: 151.9 kB / 435 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.1461, allocations: 15.91 kB / 435.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002689/0.1464, allocations: 135.3 kB / 435.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1464, allocations: 8 kB / 435.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-06/0.1464, allocations: 0 / 435.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1464, allocations: 0 / 435.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006589/0.1471, allocations: 486.1 kB / 435.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.1471, allocations: 0 / 435.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.1472, allocations: 23.98 kB / 435.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.1472, allocations: 3.984 kB / 435.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.1472, allocations: 0 / 435.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1472, allocations: 7.938 kB / 435.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1472, allocations: 4 kB / 435.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00044/0.1477, allocations: 285.5 kB / 436 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.487e-05/0.1477, allocations: 92.95 kB / 436.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.051e-05/0.1478, allocations: 11.98 kB / 436.1 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.1479, allocations: 19.92 kB / 436.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.219e-05/0.148, allocations: 23.97 kB / 436.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.148, allocations: 4 kB / 436.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001345/0.1482, allocations: 152.7 kB / 436.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1482, allocations: 0 / 436.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002905/0.1484, allocations: 39.95 kB / 436.3 MB, free: 10.83 MB / 366.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.0001549/0.1486, allocations: 107.2 kB / 436.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004384/0.149, allocations: 167.7 kB / 436.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.149, allocations: 3.938 kB / 436.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.1492, allocations: 80.02 kB / 436.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.1496, allocations: 23.98 kB / 436.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007299/0.1503, allocations: 370.1 kB / 437.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.1507, allocations: 0.732 MB / 437.8 MB, free: 9.297 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.1508, allocations: 37.52 kB / 437.8 MB, free: 9.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.466e-05/0.1509, allocations: 19.44 kB / 437.8 MB, free: 9.242 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1509, allocations: 0 / 437.8 MB, free: 9.242 MB / 366.1 MB Notification: Performance of Templates: time 0.005883/0.1567, allocations: 2.14 MB / 440 MB, free: 7.109 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.716973643749952]