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.0007969/0.0007969, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00101/0.001807, allocations: 449.7 kB / 10.37 MB, free: 324 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.0006718/0.0006718, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008657/0.001537, allocations: 463.6 kB / 11.72 MB, free: 2.453 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 0.996/0.996, allocations: 177.4 MB / 189.9 MB, free: 4.848 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09447/1.09, allocations: 53.86 MB / 243.7 MB, free: 14.93 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.2988/0.2988, allocations: 34.85 MB / 279.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02641/0.3252, allocations: 13.23 MB / 292.6 MB, free: 6.477 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 2.054e-06/2.054e-06, allocations: 0 / 293.8 MB, free: 5.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.626e-05/2.831e-05, allocations: 3.625 kB / 293.8 MB, free: 5.215 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003437/0.003465, allocations: 2 MB / 295.8 MB, free: 3.207 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008878/0.004353, allocations: 0.5618 MB / 296.4 MB, free: 2.641 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.528e-05/0.004448, allocations: 4 kB / 296.4 MB, free: 2.637 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.101e-05/0.004539, allocations: 27.72 kB / 296.4 MB, free: 2.609 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.451e-05/0.004624, allocations: 43.58 kB / 296.5 MB, free: 2.566 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001773/0.004801, allocations: 47.88 kB / 296.5 MB, free: 2.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.004975, allocations: 151.2 kB / 296.7 MB, free: 2.371 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.005105, allocations: 46.48 kB / 296.7 MB, free: 2.328 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.005301, allocations: 111.7 kB / 296.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.005401, allocations: 55.81 kB / 296.9 MB, free: 2.164 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.005422, allocations: 12 kB / 296.9 MB, free: 2.152 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.478e-05/0.005507, allocations: 19.98 kB / 296.9 MB, free: 2.133 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.923e-05/0.005526, allocations: 15.94 kB / 296.9 MB, free: 2.117 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.764e-05/0.005564, allocations: 43.88 kB / 297 MB, free: 2.074 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.005746, allocations: 95.62 kB / 297.1 MB, free: 1.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.953e-05/0.005766, allocations: 0 / 297.1 MB, free: 1.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.005767, allocations: 0 / 297.1 MB, free: 1.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.00578, allocations: 0 / 297.1 MB, free: 1.98 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.0004329/0.006213, allocations: 373.1 kB / 297.4 MB, free: 1.594 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.006247, allocations: 12.92 kB / 297.4 MB, free: 1.582 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.006384, allocations: 106 kB / 297.5 MB, free: 1.461 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.006545, allocations: 137.6 kB / 297.7 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.006556, allocations: 8.375 kB / 297.7 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.344e-05/0.006579, allocations: 12.38 kB / 297.7 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001443/0.006723, allocations: 110.8 kB / 297.8 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.006735, allocations: 192 / 297.8 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.00675, allocations: 16.11 kB / 297.8 MB, free: 1.148 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.006756, allocations: 4 kB / 297.8 MB, free: 1.145 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.691e-05/0.006803, allocations: 39.95 kB / 297.9 MB, free: 1.105 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00037/0.007173, allocations: 295.7 kB / 298.2 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.007273, allocations: 71.66 kB / 298.2 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.577e-05/0.007309, allocations: 36.83 kB / 298.3 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.332e-05/0.007322, allocations: 0 / 298.3 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.007343, allocations: 34.56 kB / 298.3 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.007344, allocations: 0 / 298.3 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008361/0.00818, allocations: 0.5392 MB / 298.8 MB, free: 48 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.008229, allocations: 55.41 kB / 298.9 MB, free: 15.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.764e-05/0.008297, allocations: 132.8 kB / 299 MB, free: 15.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.008309, allocations: 29.7 kB / 299 MB, free: 15.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.875e-05/0.008358, allocations: 120.4 kB / 299.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.647e-05/0.008395, allocations: 67.38 kB / 299.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.245e-05/0.008437, allocations: 37.69 kB / 299.3 MB, free: 15.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.464e-05/0.008522, allocations: 326.8 kB / 299.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.24e-05/0.008544, allocations: 15.94 kB / 299.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.964e-05/0.008584, allocations: 48.91 kB / 299.7 MB, free: 15.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.569e-05/0.00866, allocations: 83.86 kB / 299.7 MB, free: 15.08 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.008661, allocations: 0 / 299.7 MB, free: 15.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001481/0.008809, allocations: 139.5 kB / 299.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.008822, allocations: 6.5 kB / 299.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.289e-06/0.008827, allocations: 0 / 299.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001018/0.008929, allocations: 32.83 kB / 299.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.009069, allocations: 48 kB / 300 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007954/0.009864, allocations: 1.438 MB / 301.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.961e-05/0.009904, allocations: 8 kB / 301.4 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.064e-06/0.009911, allocations: 4 kB / 301.4 MB, free: 13.31 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 6.745e-05/0.009979, allocations: 125.8 kB / 301.5 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.929e-05/0.009998, allocations: 8 kB / 301.5 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.281e-05/0.01002, allocations: 20.77 kB / 301.6 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.01002, allocations: 4 kB / 301.6 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.01003, allocations: 4.031 kB / 301.6 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.01003, allocations: 0 / 301.6 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000317/0.01035, allocations: 341.5 kB / 301.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.01035, allocations: 0 / 301.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.01046, allocations: 47.91 kB / 301.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.154e-05/0.01047, allocations: 11.89 kB / 302 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.052e-05/0.01054, allocations: 36.84 kB / 302 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.01055, allocations: 4 kB / 302 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005766/0.01112, allocations: 1.224 MB / 303.2 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.01112, allocations: 0 / 303.2 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001877/0.01131, allocations: 242.9 kB / 303.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.064e-05/0.01132, allocations: 8 kB / 303.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.372e-05/0.01137, allocations: 15.98 kB / 303.5 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.535e-05/0.0114, allocations: 7.984 kB / 303.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.01141, allocations: 11.94 kB / 303.5 MB, free: 11.06 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.105e-05/0.01143, allocations: 22.53 kB / 303.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01143, allocations: 0 / 303.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001844/0.01161, allocations: 36 kB / 303.6 MB, free: 11 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 9.8e-05/0.01171, allocations: 84.34 kB / 303.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002509/0.01196, allocations: 223.3 kB / 303.9 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/0.01197, allocations: 4 kB / 303.9 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.01209, allocations: 179.3 kB / 304 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001759/0.01227, allocations: 40.84 kB / 304.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.01452, allocations: 342.1 kB / 304.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.387e-05/0.01457, allocations: 76.22 kB / 304.5 MB, free: 9.988 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.282e-05/0.01462, allocations: 13.48 kB / 304.5 MB, free: 9.977 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.418e-05/0.01468, allocations: 67.36 kB / 304.6 MB, free: 9.91 MB / 298.7 MB Notification: Performance of SimCode: time 1.333e-06/0.01468, allocations: 0 / 304.6 MB, free: 9.91 MB / 298.7 MB Notification: Performance of Templates: time 0.003857/0.01854, allocations: 1.805 MB / 306.4 MB, free: 8.145 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.886823119595647]