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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 84.88 kB / 22 MB, free: 4.754 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 153.8 kB / 25.24 MB, free: 2.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 158.6 MB / 187 MB, free: 6.344 MB / 174.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,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=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 59.92 kB / 299.4 MB, free: 6.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2307, allocations: 49.14 MB / 348.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003304/0.234, allocations: 1.769 MB / 350.3 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.2353, allocations: 0.6434 MB / 350.9 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.2354, allocations: 4 kB / 350.9 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.2355, allocations: 31.61 kB / 350.9 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.2356, allocations: 27.73 kB / 351 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002951/0.2359, allocations: 87.72 kB / 351.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002473/0.2362, allocations: 175.5 kB / 351.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.2363, allocations: 50.5 kB / 351.3 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.2365, allocations: 83.62 kB / 351.4 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.2366, allocations: 75.62 kB / 351.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.543e-05/0.2367, allocations: 16 kB / 351.4 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.907e-05/0.2367, allocations: 23.98 kB / 351.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.669e-05/0.2368, allocations: 47.83 kB / 351.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.755e-05/0.2369, allocations: 71.53 kB / 351.6 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002716/0.2372, allocations: 197.8 kB / 351.8 MB, free: 12.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2372, allocations: 0 / 351.8 MB, free: 12.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2372, allocations: 0 / 351.8 MB, free: 12.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2372, allocations: 3.938 kB / 351.8 MB, free: 12.23 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.000905/0.2381, allocations: 445.3 kB / 352.2 MB, free: 11.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.2381, allocations: 11.98 kB / 352.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.993e-05/0.2382, allocations: 28.8 kB / 352.3 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.2385, allocations: 194 kB / 352.4 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.2385, allocations: 12.38 kB / 352.5 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.2386, allocations: 20.38 kB / 352.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004076/0.239, allocations: 206.2 kB / 352.7 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.239, allocations: 4 kB / 352.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.988e-05/0.239, allocations: 8 kB / 352.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.239, allocations: 11.86 kB / 352.7 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003311/0.2394, allocations: 139.8 kB / 352.8 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.2404, allocations: 0.68 MB / 353.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006322/0.241, allocations: 186.6 kB / 353.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.2412, allocations: 64.81 kB / 353.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.553e-05/0.2412, allocations: 4 kB / 353.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002941/0.2415, allocations: 145 kB / 353.9 MB, free: 9.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.2415, allocations: 0 / 353.9 MB, free: 9.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006152/0.2421, allocations: 249.4 kB / 354.2 MB, free: 9.703 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.768e-05/0.2422, allocations: 81.11 kB / 354.2 MB, free: 9.605 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.2424, allocations: 212.7 kB / 354.4 MB, free: 9.383 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.2424, allocations: 33.7 kB / 354.5 MB, free: 9.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.2425, allocations: 136.4 kB / 354.6 MB, free: 9.207 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.581e-05/0.2426, allocations: 43.69 kB / 354.6 MB, free: 9.164 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.479e-05/0.2427, allocations: 57.69 kB / 354.7 MB, free: 9.102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.2428, allocations: 334.8 kB / 355 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.243, allocations: 67.95 kB / 355.1 MB, free: 8.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.2432, allocations: 140.5 kB / 355.2 MB, free: 8.531 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.2436, allocations: 216.3 kB / 355.4 MB, free: 8.289 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2436, allocations: 0 / 355.4 MB, free: 8.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004709/0.244, allocations: 241.3 kB / 355.7 MB, free: 8.047 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2441, allocations: 8 kB / 355.7 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.2441, allocations: 0 / 355.7 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.2441, allocations: 4.25 kB / 355.7 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.2443, allocations: 40.3 kB / 355.7 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.2443, allocations: 4 kB / 355.7 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001788/0.2444, allocations: 36.12 kB / 355.8 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.2445, allocations: 8 kB / 355.8 MB, free: 7.949 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.0001602/0.2446, allocations: 159.6 kB / 355.9 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.176e-05/0.2447, allocations: 19.91 kB / 356 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002651/0.2449, allocations: 131 kB / 356.1 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.2449, allocations: 8 kB / 356.1 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2449, allocations: 0 / 356.1 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2449, allocations: 0 / 356.1 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006038/0.2455, allocations: 402 kB / 356.5 MB, free: 7.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2455, allocations: 3.938 kB / 356.5 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.2457, allocations: 23.91 kB / 356.5 MB, free: 7.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.2457, allocations: 4 kB / 356.5 MB, free: 7.152 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.2457, allocations: 4 kB / 356.5 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2457, allocations: 0 / 356.5 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.2457, allocations: 4 kB / 356.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004399/0.2461, allocations: 292 kB / 356.8 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.741e-05/0.2462, allocations: 15.86 kB / 356.8 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.07e-05/0.2462, allocations: 11.98 kB / 356.8 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.2464, allocations: 11.98 kB / 356.8 MB, free: 6.801 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.08e-05/0.2464, allocations: 27.89 kB / 356.9 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.2465, allocations: 11.98 kB / 356.9 MB, free: 6.762 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001268/0.2466, allocations: 140.5 kB / 357 MB, free: 6.625 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2466, allocations: 0 / 357 MB, free: 6.625 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003016/0.2469, allocations: 43.94 kB / 357.1 MB, free: 6.582 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.0001278/0.247, allocations: 103.2 kB / 357.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004131/0.2474, allocations: 163.7 kB / 357.3 MB, free: 6.312 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2474, allocations: 0 / 357.3 MB, free: 6.312 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.2476, allocations: 76.58 kB / 357.4 MB, free: 6.238 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.248, allocations: 40.09 kB / 357.4 MB, free: 6.199 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006826/0.2486, allocations: 381.6 kB / 357.8 MB, free: 5.801 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001261/0.2488, allocations: 116.9 kB / 357.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.2489, allocations: 37.7 kB / 358 MB, free: 5.633 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.217e-05/0.2489, allocations: 20.5 kB / 358 MB, free: 5.613 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2489, allocations: 0 / 358 MB, free: 5.613 MB / 318.1 MB Notification: Performance of Templates: time 0.005584/0.2545, allocations: 2.147 MB / 360.1 MB, free: 3.461 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.320690025924705]