Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 114.9 kB / 17.73 MB, free: 5.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 185.3 kB / 20.67 MB, free: 2.383 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 222.9 MB / 246.4 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 47.92 kB / 358 MB, free: 8.316 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1258, allocations: 49.43 MB / 407.4 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003575/0.1294, allocations: 1.868 MB / 409.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00133/0.1308, allocations: 0.5843 MB / 409.9 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.1309, allocations: 0 / 409.9 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001448/0.1311, allocations: 31.66 kB / 409.9 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.1313, allocations: 35.66 kB / 409.9 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003007/0.1316, allocations: 59.88 kB / 410 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002763/0.1319, allocations: 175.3 kB / 410.2 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/0.1321, allocations: 57.66 kB / 410.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.1322, allocations: 83.62 kB / 410.3 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.1324, allocations: 75.62 kB / 410.4 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.288e-05/0.1324, allocations: 16 kB / 410.4 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.752e-05/0.1325, allocations: 16 kB / 410.4 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.1326, allocations: 43.84 kB / 410.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.723e-05/0.1327, allocations: 87.45 kB / 410.5 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.133, allocations: 191 kB / 410.7 MB, free: 3.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.133, allocations: 3.938 kB / 410.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.133, allocations: 0 / 410.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.133, allocations: 0 / 410.7 MB, free: 3.516 MB / 334.1 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.0009915/0.134, allocations: 0.5104 MB / 411.2 MB, free: 2.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.1341, allocations: 8.031 kB / 411.2 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.826e-05/0.1342, allocations: 28.73 kB / 411.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.1345, allocations: 239.8 kB / 411.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.395e-05/0.1345, allocations: 12.66 kB / 411.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/0.1346, allocations: 15.94 kB / 411.5 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004174/0.135, allocations: 202.8 kB / 411.7 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.135, allocations: 3.938 kB / 411.7 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.1351, allocations: 11.98 kB / 411.7 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.736e-05/0.1351, allocations: 4 kB / 411.8 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003211/0.1354, allocations: 143.8 kB / 411.9 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.1366, allocations: 0.7663 MB / 412.7 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003536/0.137, allocations: 165 kB / 412.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.1372, allocations: 77.8 kB / 412.9 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.456e-05/0.1372, allocations: 4 kB / 412.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002919/0.1375, allocations: 151.2 kB / 413 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 4.117e-06/0.1375, allocations: 112 / 413 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006382/0.1382, allocations: 253.4 kB / 413.3 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.833e-05/0.1383, allocations: 85.05 kB / 413.4 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/0.1385, allocations: 199 kB / 413.6 MB, free: 432 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.1385, allocations: 29.7 kB / 413.6 MB, free: 396 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.1387, allocations: 156.2 kB / 413.8 MB, free: 236 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.896e-05/0.1387, allocations: 43.64 kB / 413.8 MB, free: 192 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.23e-05/0.1388, allocations: 41.7 kB / 413.8 MB, free: 144 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002438/0.1391, allocations: 334.8 kB / 414.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.1392, allocations: 67.95 kB / 414.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/0.1395, allocations: 129.2 kB / 414.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.1398, allocations: 199.3 kB / 414.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1398, allocations: 0 / 414.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000462/0.1403, allocations: 253.2 kB / 414.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.1403, allocations: 8 kB / 414.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1404, allocations: 272 / 414.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.1404, allocations: 8.094 kB / 414.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.1406, allocations: 39.84 kB / 414.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.1406, allocations: 7.984 kB / 414.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.1407, allocations: 31.86 kB / 414.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.1408, allocations: 8 kB / 414.9 MB, free: 15.02 MB / 350.1 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.0001758/0.141, allocations: 146.2 kB / 415 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.304e-05/0.141, allocations: 15.91 kB / 415.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004817/0.1415, allocations: 218.9 kB / 415.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.1415, allocations: 0 / 415.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.1415, allocations: 0 / 415.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.1415, allocations: 7.984 kB / 415.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003198/0.1419, allocations: 265.4 kB / 415.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1419, allocations: 0 / 415.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.142, allocations: 23.92 kB / 415.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.142, allocations: 0 / 415.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.142, allocations: 12 kB / 415.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.142, allocations: 0 / 415.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.142, allocations: 3.984 kB / 415.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004006/0.1424, allocations: 225.7 kB / 415.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.703e-05/0.1425, allocations: 92.95 kB / 415.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.222e-05/0.1426, allocations: 8 kB / 415.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.1427, allocations: 23.91 kB / 415.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.985e-05/0.1428, allocations: 19.92 kB / 415.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.1428, allocations: 4 kB / 415.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001678/0.143, allocations: 148.3 kB / 416.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.143, allocations: 0 / 416.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.1432, allocations: 47.88 kB / 416.1 MB, free: 13.67 MB / 350.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: 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.0001656/0.1434, allocations: 108.2 kB / 416.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004133/0.1438, allocations: 179.8 kB / 416.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1438, allocations: 0 / 416.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001842/0.144, allocations: 83.89 kB / 416.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.1444, allocations: 40.09 kB / 416.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007674/0.1451, allocations: 373.3 kB / 416.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006489/0.1458, allocations: 0.7319 MB / 417.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001102/0.1459, allocations: 41.5 kB / 417.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.213e-05/0.146, allocations: 15.44 kB / 417.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.146, allocations: 0 / 417.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of Templates: time 0.006236/0.1522, allocations: 2.129 MB / 419.8 MB, free: 9.957 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.774682251736522]