Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.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.000974/0.000974, allocations: 75.59 kB / 21.18 MB, free: 3.391 MB / 18.57 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.0009989/0.0009989, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9923/0.9923, allocations: 177.1 MB / 205 MB, free: 5.266 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.345e-06/2.345e-06, allocations: 0 / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.1e-05/3.334e-05, allocations: 2.312 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003801/0.003834, allocations: 1.894 MB / 274.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.005407, allocations: 0.6465 MB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.005553, allocations: 7.938 kB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.005732, allocations: 31.59 kB / 275.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001933/0.005925, allocations: 39.66 kB / 275.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.006334, allocations: 83.72 kB / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002739/0.006607, allocations: 167.3 kB / 275.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.006791, allocations: 44.55 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002871/0.007078, allocations: 107.7 kB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.007254, allocations: 63.84 kB / 276 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.932e-05/0.007294, allocations: 12 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.941e-05/0.007393, allocations: 27.92 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.718e-05/0.00748, allocations: 43.83 kB / 276.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.018e-05/0.00756, allocations: 47.84 kB / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003275/0.007888, allocations: 159.4 kB / 276.3 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.007891, allocations: 7.875 kB / 276.3 MB, free: 13.99 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.007892, allocations: 0 / 276.3 MB, free: 13.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.007899, allocations: 4 kB / 276.3 MB, free: 13.98 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.000835/0.008734, allocations: 0.5194 MB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.008778, allocations: 15.97 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001807/0.008959, allocations: 40.78 kB / 276.9 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.009229, allocations: 184.2 kB / 277.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.928e-05/0.009258, allocations: 12.66 kB / 277.1 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.009286, allocations: 12.38 kB / 277.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.009613, allocations: 176.4 kB / 277.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.009626, allocations: 192 / 277.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.009647, allocations: 8.375 kB / 277.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.136e-05/0.009678, allocations: 11.92 kB / 277.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001814/0.009859, allocations: 75.11 kB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.0111, allocations: 0.8358 MB / 278.2 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002864/0.01139, allocations: 126.2 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.564e-05/0.01145, allocations: 43.47 kB / 278.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.489e-05/0.0115, allocations: 4 kB / 278.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001668/0.01167, allocations: 116.4 kB / 278.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.743e-06/0.01167, allocations: 3.938 kB / 278.5 MB, free: 11.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003413/0.01201, allocations: 161.6 kB / 278.7 MB, free: 11.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.01206, allocations: 89.05 kB / 278.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001627/0.01222, allocations: 249.6 kB / 279 MB, free: 11.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.01224, allocations: 33.7 kB / 279 MB, free: 11.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.946e-05/0.01234, allocations: 187.1 kB / 279.2 MB, free: 10.87 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/0.01238, allocations: 43.64 kB / 279.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.88e-05/0.01244, allocations: 51.36 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.01256, allocations: 0.4962 MB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.064e-05/0.01263, allocations: 31.97 kB / 279.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.181e-05/0.01272, allocations: 106.3 kB / 279.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.01287, allocations: 149.4 kB / 280.1 MB, free: 9.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.01287, allocations: 0 / 280.1 MB, free: 9.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002269/0.0131, allocations: 177.3 kB / 280.3 MB, free: 9.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.01312, allocations: 7.938 kB / 280.3 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.01313, allocations: 4.188 kB / 280.3 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.01314, allocations: 4 kB / 280.3 MB, free: 9.715 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.0133, allocations: 39.91 kB / 280.3 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.01331, allocations: 4 kB / 280.3 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.34e-05/0.01338, allocations: 23.88 kB / 280.3 MB, free: 9.648 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.0134, allocations: 12 kB / 280.3 MB, free: 9.637 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.000114/0.01351, allocations: 168.5 kB / 280.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.744e-05/0.01354, allocations: 27.84 kB / 280.5 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002806/0.01382, allocations: 147.7 kB / 280.7 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.01382, allocations: 4 kB / 280.7 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.01383, allocations: 0 / 280.7 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.01384, allocations: 0 / 280.7 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001871/0.01402, allocations: 184.5 kB / 280.9 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.01403, allocations: 3.984 kB / 280.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.077e-05/0.0141, allocations: 23.94 kB / 280.9 MB, free: 9.039 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.0141, allocations: 3.984 kB / 280.9 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.01411, allocations: 7.938 kB / 280.9 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.01411, allocations: 0 / 280.9 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.01412, allocations: 0 / 280.9 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001773/0.01429, allocations: 183.9 kB / 281.1 MB, free: 8.824 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.311e-05/0.01432, allocations: 23.86 kB / 281.1 MB, free: 8.801 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.01433, allocations: 11.88 kB / 281.1 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.165e-05/0.01439, allocations: 11.98 kB / 281.1 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.178e-05/0.01445, allocations: 23.91 kB / 281.2 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.01446, allocations: 4 kB / 281.2 MB, free: 8.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.17e-05/0.01454, allocations: 172.5 kB / 281.3 MB, free: 8.582 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01454, allocations: 0 / 281.3 MB, free: 8.582 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002032/0.01474, allocations: 39.89 kB / 281.4 MB, free: 8.543 MB / 266.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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001323/0.01487, allocations: 99.23 kB / 281.5 MB, free: 8.438 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001854/0.01506, allocations: 110.8 kB / 281.6 MB, free: 8.328 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.01506, allocations: 0 / 281.6 MB, free: 8.328 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.33e-05/0.01513, allocations: 59.59 kB / 281.6 MB, free: 8.266 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.01538, allocations: 52.11 kB / 281.7 MB, free: 8.215 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007315/0.01611, allocations: 356.1 kB / 282 MB, free: 7.832 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.982e-05/0.01616, allocations: 79.98 kB / 282.1 MB, free: 7.734 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.99e-05/0.01624, allocations: 29.45 kB / 282.1 MB, free: 7.707 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.651e-05/0.01628, allocations: 24.5 kB / 282.2 MB, free: 7.684 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01629, allocations: 0 / 282.2 MB, free: 7.684 MB / 266.7 MB Notification: Performance of Templates: time 0.004604/0.02089, allocations: 2.219 MB / 284.4 MB, free: 5.508 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0971993510611355]