Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.0008134/0.0008134, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001233/0.002047, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0008031/0.0008031, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001203/0.002006, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.09/1.09, allocations: 177.5 MB / 190 MB, free: 4.805 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08972/1.18, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2763/0.2763, allocations: 34.88 MB / 279.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.04645/0.3227, allocations: 13.23 MB / 292.8 MB, free: 6.402 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 294.1 MB, free: 5.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.069e-05/2.211e-05, allocations: 6.969 kB / 294.1 MB, free: 5.113 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002751/0.002773, allocations: 2.005 MB / 296.1 MB, free: 3.098 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008057/0.003579, allocations: 0.5657 MB / 296.6 MB, free: 2.527 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.519e-05/0.003654, allocations: 7.938 kB / 296.7 MB, free: 2.52 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.341e-05/0.003727, allocations: 15.8 kB / 296.7 MB, free: 2.504 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.724e-05/0.003804, allocations: 51.56 kB / 296.7 MB, free: 2.453 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001303/0.003935, allocations: 47.88 kB / 296.8 MB, free: 2.406 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.00409, allocations: 159.2 kB / 296.9 MB, free: 2.25 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.004213, allocations: 46.42 kB / 297 MB, free: 2.203 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001861/0.004399, allocations: 109.6 kB / 297.1 MB, free: 2.098 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.47e-05/0.004483, allocations: 43.88 kB / 297.1 MB, free: 2.055 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.942e-05/0.004503, allocations: 12 kB / 297.1 MB, free: 2.043 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.705e-05/0.00456, allocations: 12 kB / 297.1 MB, free: 2.031 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.337e-05/0.004583, allocations: 23.88 kB / 297.2 MB, free: 2.008 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.464e-05/0.004618, allocations: 39.94 kB / 297.2 MB, free: 1.969 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.004778, allocations: 107.5 kB / 297.3 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.164e-05/0.00479, allocations: 0 / 297.3 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.004791, allocations: 4 kB / 297.3 MB, free: 1.859 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.004799, allocations: 0 / 297.3 MB, free: 1.859 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004128/0.005212, allocations: 369.1 kB / 297.7 MB, free: 1.477 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.005244, allocations: 12.91 kB / 297.7 MB, free: 1.465 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.00537, allocations: 102 kB / 297.8 MB, free: 1.348 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.005519, allocations: 143.5 kB / 297.9 MB, free: 1.184 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.00553, allocations: 8.375 kB / 297.9 MB, free: 1.176 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.66e-05/0.005557, allocations: 16.36 kB / 298 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.005677, allocations: 114.9 kB / 298.1 MB, free: 1.039 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.005686, allocations: 192 / 298.1 MB, free: 1.039 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.005697, allocations: 12.12 kB / 298.1 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.005702, allocations: 4 kB / 298.1 MB, free: 1.023 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.345e-05/0.005745, allocations: 27.97 kB / 298.1 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00038/0.006125, allocations: 299.7 kB / 298.4 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001048/0.00623, allocations: 70.53 kB / 298.5 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.128e-05/0.006261, allocations: 28.84 kB / 298.5 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.006271, allocations: 4 kB / 298.5 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.006296, allocations: 42.56 kB / 298.5 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 9.72e-07/0.006297, allocations: 0 / 298.5 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.000836/0.007133, allocations: 0.5431 MB / 299.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.00716, allocations: 51.41 kB / 299.1 MB, free: 15.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.068e-05/0.007231, allocations: 140.9 kB / 299.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.007243, allocations: 29.7 kB / 299.3 MB, free: 15.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.47e-05/0.007288, allocations: 116.3 kB / 299.4 MB, free: 15.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.508e-05/0.007323, allocations: 71.38 kB / 299.5 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.007362, allocations: 37.69 kB / 299.5 MB, free: 15.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.768e-05/0.00745, allocations: 322.8 kB / 299.8 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.848e-05/0.007468, allocations: 12 kB / 299.8 MB, free: 15.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.216e-05/0.007511, allocations: 52.89 kB / 299.9 MB, free: 15.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.689e-05/0.007587, allocations: 92.55 kB / 300 MB, free: 14.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.007589, allocations: 0 / 300 MB, free: 14.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001543/0.007743, allocations: 130.8 kB / 300.1 MB, free: 14.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.007755, allocations: 4 kB / 300.1 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.007759, allocations: 0 / 300.1 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001061/0.007865, allocations: 36.83 kB / 300.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.008002, allocations: 44 kB / 300.2 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009015/0.008903, allocations: 1.438 MB / 301.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.041e-05/0.008944, allocations: 7.984 kB / 301.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.008952, allocations: 8 kB / 301.7 MB, free: 13.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.664e-05/0.009028, allocations: 121.8 kB / 301.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.169e-05/0.00905, allocations: 15.98 kB / 301.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.067e-05/0.009071, allocations: 12.78 kB / 301.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.009073, allocations: 4 kB / 301.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.009079, allocations: 0 / 301.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.009082, allocations: 0 / 301.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003464/0.009429, allocations: 345.5 kB / 302.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.009431, allocations: 3.938 kB / 302.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.009543, allocations: 51.92 kB / 302.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.027e-05/0.009554, allocations: 11.89 kB / 302.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.789e-05/0.009632, allocations: 24.89 kB / 302.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.009642, allocations: 7.984 kB / 302.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006198/0.01026, allocations: 1.236 MB / 303.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.01026, allocations: 4 kB / 303.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001865/0.01045, allocations: 237 kB / 303.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.022e-05/0.01046, allocations: 4 kB / 303.7 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.358e-05/0.0105, allocations: 7.938 kB / 303.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.607e-05/0.01054, allocations: 15.97 kB / 303.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-06/0.01055, allocations: 4 kB / 303.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.14e-05/0.01057, allocations: 24.83 kB / 303.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.1e-08/0.01057, allocations: 0 / 303.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001853/0.01075, allocations: 40 kB / 303.8 MB, free: 10.88 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 8.323e-05/0.01084, allocations: 80.42 kB / 303.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002488/0.01109, allocations: 226.5 kB / 304.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.01109, allocations: 0 / 304.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.01122, allocations: 188.7 kB / 304.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.01144, allocations: 180.6 kB / 304.5 MB, free: 10.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.01365, allocations: 345.6 kB / 304.8 MB, free: 9.789 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.435e-05/0.0137, allocations: 76.22 kB / 304.9 MB, free: 9.691 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.089e-05/0.01374, allocations: 13.77 kB / 304.9 MB, free: 9.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.622e-05/0.01382, allocations: 75.36 kB / 305 MB, free: 9.605 MB / 298.7 MB Notification: Performance of SimCode: time 9.42e-07/0.01382, allocations: 0 / 305 MB, free: 9.605 MB / 298.7 MB Notification: Performance of Templates: time 0.004/0.01782, allocations: 1.907 MB / 306.9 MB, free: 7.742 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9265389880165458]