Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.001466/0.001466, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.001692/0.001692, allocations: 165.7 kB / 24.27 MB, free: 144 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 1.566/1.566, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3622/0.3622, allocations: 32.79 MB / 293.9 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 375.2 MB, free: 5.027 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.32e-05/3.495e-05, allocations: 5.547 kB / 375.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004227/0.004262, allocations: 1.879 MB / 377.1 MB, free: 3.129 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.0057, allocations: 0.5259 MB / 377.6 MB, free: 2.598 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002515/0.005952, allocations: 3.938 kB / 377.6 MB, free: 2.594 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002499/0.006202, allocations: 19.8 kB / 377.7 MB, free: 2.574 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002614/0.006463, allocations: 47.56 kB / 377.7 MB, free: 2.527 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000506/0.006969, allocations: 47.94 kB / 377.8 MB, free: 2.48 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004456/0.007415, allocations: 163.1 kB / 377.9 MB, free: 2.32 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002289/0.007644, allocations: 37.8 kB / 378 MB, free: 2.281 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004175/0.008061, allocations: 95.78 kB / 378 MB, free: 2.188 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001991/0.00826, allocations: 47.88 kB / 378.1 MB, free: 2.141 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.98e-05/0.0083, allocations: 12 kB / 378.1 MB, free: 2.129 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.172e-05/0.008392, allocations: 16 kB / 378.1 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.971e-05/0.008441, allocations: 31.84 kB / 378.2 MB, free: 2.082 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.377e-05/0.008535, allocations: 43.91 kB / 378.2 MB, free: 2.039 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003656/0.008901, allocations: 159.4 kB / 378.4 MB, free: 1.883 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.008906, allocations: 0 / 378.4 MB, free: 1.883 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.574e-06/0.008909, allocations: 4 kB / 378.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.008916, allocations: 0 / 378.4 MB, free: 1.879 MB / 346.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.0008084/0.009725, allocations: 365.7 kB / 378.7 MB, free: 1.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/0.009778, allocations: 8.031 kB / 378.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00021/0.009988, allocations: 36.83 kB / 378.8 MB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.01035, allocations: 149.5 kB / 378.9 MB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.01037, allocations: 8.375 kB / 378.9 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.876e-05/0.01042, allocations: 16.38 kB / 378.9 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003413/0.01076, allocations: 126.7 kB / 379.1 MB, free: 1.125 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.01078, allocations: 192 / 379.1 MB, free: 1.125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.698e-05/0.01081, allocations: 8.125 kB / 379.1 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.01082, allocations: 7.984 kB / 379.1 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002249/0.01104, allocations: 87.94 kB / 379.2 MB, free: 1.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008929/0.01194, allocations: 384 kB / 379.5 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002597/0.0122, allocations: 106.5 kB / 379.6 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.01233, allocations: 60.83 kB / 379.7 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.01236, allocations: 0 / 379.7 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.108e-05/0.01241, allocations: 38.5 kB / 379.7 MB, free: 404 kB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 8.92e-07/0.01241, allocations: 0 / 379.7 MB, free: 404 kB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.001843/0.01426, allocations: 0.651 MB / 380.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.01431, allocations: 63.34 kB / 380.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.01446, allocations: 129.3 kB / 380.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.01448, allocations: 25.7 kB / 380.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.0146, allocations: 116.4 kB / 380.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.991e-05/0.01468, allocations: 75.27 kB / 380.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.887e-05/0.01475, allocations: 37.72 kB / 380.8 MB, free: 15.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.01495, allocations: 330.8 kB / 381.1 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.01506, allocations: 43.97 kB / 381.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.01519, allocations: 71.41 kB / 381.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/0.01548, allocations: 135.4 kB / 381.4 MB, free: 14.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01548, allocations: 0 / 381.4 MB, free: 14.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004589/0.01594, allocations: 210.2 kB / 381.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.01597, allocations: 8 kB / 381.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.01597, allocations: 0 / 381.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002267/0.0162, allocations: 48.77 kB / 381.6 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.01639, allocations: 36.02 kB / 381.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/0.01849, allocations: 1.622 MB / 383.3 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.379e-05/0.01857, allocations: 4 kB / 383.3 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.01859, allocations: 8 kB / 383.3 MB, free: 12.57 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.000149/0.01874, allocations: 133.8 kB / 383.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.922e-05/0.01879, allocations: 15.91 kB / 383.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.266e-05/0.01884, allocations: 24.77 kB / 383.5 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.01884, allocations: 0 / 383.5 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.01885, allocations: 0 / 383.5 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.01885, allocations: 4 kB / 383.5 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008709/0.01972, allocations: 483.5 kB / 384 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.01973, allocations: 0 / 384 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.01991, allocations: 39.95 kB / 384 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001336/0.02004, allocations: 32.83 kB / 384 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.02006, allocations: 4 kB / 384 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.02153, allocations: 1.343 MB / 385.4 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.02153, allocations: 3.984 kB / 385.4 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005975/0.02213, allocations: 364.1 kB / 385.7 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.213e-05/0.02215, allocations: 11.89 kB / 385.8 MB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.02217, allocations: 7.984 kB / 385.8 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.02228, allocations: 4 kB / 385.8 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.461e-05/0.02235, allocations: 15.97 kB / 385.8 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.02236, allocations: 4 kB / 385.8 MB, free: 9.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.825e-05/0.02245, allocations: 99.27 kB / 385.9 MB, free: 9.832 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02245, allocations: 0 / 385.9 MB, free: 9.832 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003649/0.02281, allocations: 36 kB / 385.9 MB, free: 9.797 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.0001584/0.02297, allocations: 103.2 kB / 386 MB, free: 9.684 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006978/0.02367, allocations: 258.3 kB / 386.3 MB, free: 9.418 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.02367, allocations: 0 / 386.3 MB, free: 9.418 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003206/0.02399, allocations: 190.5 kB / 386.5 MB, free: 9.219 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003779/0.02437, allocations: 32.05 kB / 386.5 MB, free: 9.188 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009442/0.02531, allocations: 386.4 kB / 386.9 MB, free: 8.777 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001402/0.02545, allocations: 107.8 kB / 387 MB, free: 8.648 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.449e-05/0.02551, allocations: 9.5 kB / 387 MB, free: 8.641 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.433e-05/0.02556, allocations: 20.48 kB / 387 MB, free: 8.621 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.02556, allocations: 0 / 387 MB, free: 8.621 MB / 362.7 MB Notification: Performance of Templates: time 0.005521/0.03108, allocations: 1.599 MB / 388.6 MB, free: 7.039 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 5.086381683009677]