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.001945/0.001945, allocations: 96.25 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002276/0.002276, allocations: 160.9 kB / 24.27 MB, free: 164 kB / 18.57 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.548/1.548, allocations: 177 MB / 204.4 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.3465/0.3465, allocations: 34.24 MB / 295.2 MB, free: 0.668 MB / 266.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.433e-06/1.433e-06, allocations: 0 / 377.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.703e-05/2.846e-05, allocations: 4.844 kB / 377.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003238/0.003267, allocations: 1.879 MB / 379.1 MB, free: 1.035 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.00431, allocations: 0.5298 MB / 379.6 MB, free: 0.5 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.308e-05/0.004393, allocations: 4 kB / 379.6 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.004523, allocations: 27.72 kB / 379.6 MB, free: 480 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.794e-05/0.004621, allocations: 39.64 kB / 379.7 MB, free: 440 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002236/0.004844, allocations: 47.88 kB / 379.7 MB, free: 392 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002249/0.005069, allocations: 159.2 kB / 379.9 MB, free: 232 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.005229, allocations: 49.78 kB / 379.9 MB, free: 180 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.005443, allocations: 95.72 kB / 380 MB, free: 84 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.005543, allocations: 43.89 kB / 380 MB, free: 40 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.067e-05/0.005573, allocations: 12 kB / 380.1 MB, free: 28 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.969e-05/0.005623, allocations: 12 kB / 380.1 MB, free: 16 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.516e-05/0.005678, allocations: 31.94 kB / 380.1 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 7.392e-05/0.005752, allocations: 51.89 kB / 380.2 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.00601, allocations: 159.5 kB / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.604e-06/0.006012, allocations: 0 / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.006013, allocations: 0 / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.006017, allocations: 0 / 380.3 MB, free: 15.77 MB / 362.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.0005984/0.006616, allocations: 357.7 kB / 380.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.006649, allocations: 12.03 kB / 380.7 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.006819, allocations: 36.83 kB / 380.7 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.007064, allocations: 145.4 kB / 380.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.115e-05/0.007095, allocations: 12.38 kB / 380.9 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.856e-05/0.007133, allocations: 16.38 kB / 380.9 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.007419, allocations: 130.1 kB / 381 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.007432, allocations: 8.188 kB / 381 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.007452, allocations: 8.125 kB / 381 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.007459, allocations: 4 kB / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.007657, allocations: 79.94 kB / 381.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006898/0.008347, allocations: 376.1 kB / 381.5 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.008595, allocations: 114.5 kB / 381.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.008712, allocations: 48.84 kB / 381.6 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.008738, allocations: 8 kB / 381.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.782e-05/0.008776, allocations: 34.56 kB / 381.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 9.41e-07/0.008777, allocations: 0 / 381.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.001554/0.01033, allocations: 0.6618 MB / 382.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.01038, allocations: 59.34 kB / 382.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.01051, allocations: 128.2 kB / 382.5 MB, free: 13.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.01054, allocations: 33.7 kB / 382.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.76e-05/0.01064, allocations: 116.4 kB / 382.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.631e-05/0.0107, allocations: 67.42 kB / 382.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.695e-05/0.01077, allocations: 37.72 kB / 382.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.01096, allocations: 322.8 kB / 383.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.01107, allocations: 51.91 kB / 383.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.01121, allocations: 83.34 kB / 383.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002372/0.01145, allocations: 119.4 kB / 383.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-06/0.01145, allocations: 4 kB / 383.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004354/0.01188, allocations: 218.2 kB / 383.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.0119, allocations: 4 kB / 383.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.01191, allocations: 3.938 kB / 383.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001867/0.0121, allocations: 44.83 kB / 383.6 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.01227, allocations: 35.92 kB / 383.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001757/0.01402, allocations: 1.606 MB / 385.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.907e-05/0.0141, allocations: 8.031 kB / 385.2 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.01412, allocations: 4 kB / 385.3 MB, free: 10.49 MB / 362.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 0.0001428/0.01426, allocations: 133.7 kB / 385.4 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.918e-05/0.01431, allocations: 23.91 kB / 385.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.122e-05/0.01436, allocations: 24.86 kB / 385.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.01436, allocations: 4 kB / 385.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.01437, allocations: 0 / 385.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.01437, allocations: 0 / 385.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008161/0.01519, allocations: 490 kB / 385.9 MB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.01519, allocations: 0 / 385.9 MB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.01536, allocations: 31.98 kB / 385.9 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001264/0.01548, allocations: 44.8 kB / 386 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.0155, allocations: 4 kB / 386 MB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001399/0.01689, allocations: 1.343 MB / 387.3 MB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.0169, allocations: 0 / 387.3 MB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005647/0.01746, allocations: 345 kB / 387.7 MB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.368e-05/0.01748, allocations: 23.97 kB / 387.7 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.0175, allocations: 4 kB / 387.7 MB, free: 7.863 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.226e-05/0.01759, allocations: 8 kB / 387.7 MB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.01765, allocations: 12.11 kB / 387.7 MB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.01765, allocations: 4 kB / 387.7 MB, free: 7.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.441e-05/0.01773, allocations: 99.27 kB / 387.8 MB, free: 7.742 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01773, allocations: 0 / 387.8 MB, free: 7.742 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000324/0.01805, allocations: 40 kB / 387.9 MB, free: 7.703 MB / 362.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 0.0001339/0.01819, allocations: 103.2 kB / 388 MB, free: 7.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005481/0.01874, allocations: 262.3 kB / 388.2 MB, free: 7.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01874, allocations: 0 / 388.2 MB, free: 7.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.01903, allocations: 194.5 kB / 388.4 MB, free: 7.117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.01943, allocations: 27.86 kB / 388.4 MB, free: 7.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007795/0.02021, allocations: 388.7 kB / 388.8 MB, free: 6.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.02033, allocations: 107.8 kB / 388.9 MB, free: 6.551 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.776e-05/0.02037, allocations: 13.48 kB / 388.9 MB, free: 6.539 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.749e-05/0.02041, allocations: 12.5 kB / 388.9 MB, free: 6.527 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.02041, allocations: 8 kB / 388.9 MB, free: 6.52 MB / 362.7 MB Notification: Performance of Templates: time 0.005115/0.02553, allocations: 1.603 MB / 390.6 MB, free: 4.93 MB / 362.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.921522193937562]