Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.002634/0.002634, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.003235/0.003235, allocations: 161.3 kB / 24.27 MB, free: 152 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.601/1.601, allocations: 177.2 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.4261/0.4261, allocations: 34.27 MB / 295.3 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.789e-05/2.917e-05, allocations: 2.312 kB / 377.3 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00355/0.00358, allocations: 1.934 MB / 379.2 MB, free: 1.039 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.004773, allocations: 0.5493 MB / 379.7 MB, free: 496 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.984e-05/0.004873, allocations: 4 kB / 379.8 MB, free: 492 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001578/0.005031, allocations: 23.78 kB / 379.8 MB, free: 468 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.005143, allocations: 39.58 kB / 379.8 MB, free: 428 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002675/0.00541, allocations: 47.88 kB / 379.9 MB, free: 380 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002343/0.005645, allocations: 155.2 kB / 380 MB, free: 224 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.005798, allocations: 45.78 kB / 380.1 MB, free: 176 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002344/0.006032, allocations: 95.78 kB / 380.2 MB, free: 80 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.006162, allocations: 47.88 kB / 380.2 MB, free: 32 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.991e-05/0.006192, allocations: 15.94 kB / 380.2 MB, free: 16 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.165e-05/0.006253, allocations: 16 kB / 380.2 MB, free: 0 / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.946e-05/0.006313, allocations: 31.97 kB / 380.3 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 8.095e-05/0.006394, allocations: 47.89 kB / 380.3 MB, free: 15.92 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002691/0.006663, allocations: 159.5 kB / 380.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.006666, allocations: 0 / 380.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.02e-07/0.006667, allocations: 0 / 380.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.006673, allocations: 4 kB / 380.5 MB, free: 15.76 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.0006845/0.007357, allocations: 471.7 kB / 380.9 MB, free: 15.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.007398, allocations: 12.03 kB / 380.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.007565, allocations: 32.83 kB / 381 MB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.007807, allocations: 160.1 kB / 381.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.007823, allocations: 8.375 kB / 381.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.128e-05/0.007854, allocations: 16.38 kB / 381.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.008123, allocations: 118.2 kB / 381.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.008138, allocations: 192 / 381.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.008156, allocations: 8.125 kB / 381.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.008162, allocations: 11.94 kB / 381.3 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.008352, allocations: 75.95 kB / 381.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007914/0.009143, allocations: 451.3 kB / 381.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.009424, allocations: 123 kB / 381.9 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/0.009556, allocations: 55.66 kB / 382 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.009585, allocations: 0 / 382 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.824e-05/0.009643, allocations: 41.39 kB / 382 MB, free: 14.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 9.62e-07/0.009644, allocations: 0 / 382 MB, free: 14.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.002141/0.01179, allocations: 0.6846 MB / 382.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/0.01184, allocations: 59.34 kB / 382.8 MB, free: 13.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.01201, allocations: 193.9 kB / 382.9 MB, free: 13.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.01204, allocations: 25.7 kB / 383 MB, free: 13.03 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.01216, allocations: 167.2 kB / 383.1 MB, free: 12.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.339e-05/0.01224, allocations: 67.42 kB / 383.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.056e-05/0.01232, allocations: 55.36 kB / 383.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002684/0.01259, allocations: 0.4962 MB / 383.8 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.553e-05/0.01268, allocations: 39.98 kB / 383.8 MB, free: 12.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.01282, allocations: 89.72 kB / 383.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.01308, allocations: 158.5 kB / 384 MB, free: 11.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.01308, allocations: 0 / 384 MB, free: 11.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000412/0.01349, allocations: 213 kB / 384.2 MB, free: 11.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.01351, allocations: 4 kB / 384.2 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.01352, allocations: 8.031 kB / 384.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002042/0.01372, allocations: 47.66 kB / 384.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001642/0.01388, allocations: 31.92 kB / 384.3 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/0.016, allocations: 2.223 MB / 386.6 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.745e-05/0.01607, allocations: 8.031 kB / 386.6 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.01608, allocations: 8 kB / 386.6 MB, free: 9.242 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.000172/0.01626, allocations: 180.5 kB / 386.7 MB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.724e-05/0.0163, allocations: 23.84 kB / 386.8 MB, free: 9.031 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.521e-05/0.01635, allocations: 16.77 kB / 386.8 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.01635, allocations: 4 kB / 386.8 MB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.01636, allocations: 0 / 386.8 MB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.01636, allocations: 0 / 386.8 MB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008879/0.01725, allocations: 0.5591 MB / 387.4 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01725, allocations: 0 / 387.4 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.01742, allocations: 35.98 kB / 387.4 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001278/0.01755, allocations: 35.7 kB / 387.4 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.01756, allocations: 7.984 kB / 387.4 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002072/0.01964, allocations: 1.873 MB / 389.3 MB, free: 6.324 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.01964, allocations: 4 kB / 389.3 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000868/0.02051, allocations: 408.9 kB / 389.7 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.463e-05/0.02053, allocations: 11.89 kB / 389.7 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.752e-05/0.02056, allocations: 4 kB / 389.7 MB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.0207, allocations: 3.984 kB / 389.7 MB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.38e-05/0.02077, allocations: 23.91 kB / 389.7 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.02079, allocations: 8.062 kB / 389.8 MB, free: 5.844 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001458/0.02093, allocations: 143.2 kB / 389.9 MB, free: 5.703 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.02093, allocations: 0 / 389.9 MB, free: 5.703 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005812/0.02151, allocations: 40 kB / 389.9 MB, free: 5.664 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.0001677/0.02168, allocations: 95.25 kB / 390 MB, free: 5.559 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008092/0.02249, allocations: 329.2 kB / 390.3 MB, free: 5.215 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.02249, allocations: 4.062 kB / 390.4 MB, free: 5.211 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004864/0.02298, allocations: 265.3 kB / 390.6 MB, free: 4.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004827/0.02346, allocations: 27.91 kB / 390.6 MB, free: 4.902 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008136/0.02428, allocations: 394.8 kB / 391 MB, free: 4.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.0244, allocations: 111.8 kB / 391.1 MB, free: 4.348 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.86e-05/0.02445, allocations: 13.47 kB / 391.1 MB, free: 4.336 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.972e-05/0.02449, allocations: 16.5 kB / 391.2 MB, free: 4.32 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02449, allocations: 0 / 391.2 MB, free: 4.32 MB / 362.7 MB Notification: Performance of Templates: time 0.005257/0.02975, allocations: 1.619 MB / 392.8 MB, free: 2.723 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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.08769915997982]