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.001884/0.001884, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.002294/0.002294, allocations: 214.3 kB / 23.73 MB, free: 4.16 MB / 14.72 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.546/1.546, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 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.2337/0.2337, allocations: 44.92 MB / 358.8 MB, free: 6.066 MB / 286.1 MB " [Timeout remaining time 180] 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002133/0.002133, allocations: 71.89 kB / 0.4935 GB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3639, allocations: 65.47 MB / 0.5574 GB, free: 7.5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00335/0.3672, allocations: 1.862 MB / 0.5593 GB, free: 5.625 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.3683, allocations: 0.5309 MB / 0.5598 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.025e-05/0.3684, allocations: 7.938 kB / 0.5598 GB, free: 5.082 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.3685, allocations: 19.8 kB / 0.5598 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.893e-05/0.3686, allocations: 39.62 kB / 0.5598 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002423/0.3688, allocations: 47.89 kB / 0.5599 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.369, allocations: 151.3 kB / 0.56 GB, free: 4.828 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.3692, allocations: 45.81 kB / 0.5601 GB, free: 4.777 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001672/0.3693, allocations: 71.77 kB / 0.5601 GB, free: 4.707 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.3695, allocations: 55.7 kB / 0.5602 GB, free: 4.652 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.626e-05/0.3695, allocations: 12 kB / 0.5602 GB, free: 4.641 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.121e-05/0.3695, allocations: 20 kB / 0.5602 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.233e-05/0.3696, allocations: 27.86 kB / 0.5603 GB, free: 4.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.763e-05/0.3696, allocations: 51.73 kB / 0.5603 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.3699, allocations: 165.7 kB / 0.5605 GB, free: 4.387 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3699, allocations: 0 / 0.5605 GB, free: 4.387 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.45e-05/0.3699, allocations: 0 / 0.5605 GB, free: 4.387 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.3699, allocations: 0 / 0.5605 GB, free: 4.387 MB / 398.1 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.0006188/0.3706, allocations: 365.7 kB / 0.5608 GB, free: 4 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.3706, allocations: 12.03 kB / 0.5608 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.3708, allocations: 24.83 kB / 0.5608 GB, free: 3.965 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003079/0.3711, allocations: 154.3 kB / 0.561 GB, free: 3.789 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.3711, allocations: 12.38 kB / 0.561 GB, free: 3.777 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.681e-05/0.3711, allocations: 24.2 kB / 0.561 GB, free: 3.754 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002992/0.3714, allocations: 126.3 kB / 0.5611 GB, free: 3.625 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.3714, allocations: 0 / 0.5611 GB, free: 3.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.3715, allocations: 4 kB / 0.5611 GB, free: 3.621 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.3715, allocations: 8 kB / 0.5612 GB, free: 3.613 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.3717, allocations: 91.91 kB / 0.5612 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006649/0.3723, allocations: 368.1 kB / 0.5616 GB, free: 3.133 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.3726, allocations: 110.5 kB / 0.5617 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.3727, allocations: 48.83 kB / 0.5617 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.3727, allocations: 11.94 kB / 0.5618 GB, free: 2.953 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.3727, allocations: 30.56 kB / 0.5618 GB, free: 2.914 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 3.337e-06/0.3727, allocations: 4 kB / 0.5618 GB, free: 2.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001471/0.3742, allocations: 0.6517 MB / 0.5624 GB, free: 2.203 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.3743, allocations: 55.41 kB / 0.5625 GB, free: 2.137 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.3744, allocations: 132.4 kB / 0.5626 GB, free: 2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.3744, allocations: 25.7 kB / 0.5626 GB, free: 1.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.437e-05/0.3745, allocations: 116.4 kB / 0.5627 GB, free: 1.852 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.512e-05/0.3746, allocations: 79.38 kB / 0.5628 GB, free: 1.773 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.916e-05/0.3746, allocations: 33.72 kB / 0.5629 GB, free: 1.734 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3748, allocations: 322.8 kB / 0.5632 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.3749, allocations: 39.97 kB / 0.5632 GB, free: 1.371 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.375, allocations: 79.34 kB / 0.5633 GB, free: 1.281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002374/0.3752, allocations: 131.3 kB / 0.5634 GB, free: 1.141 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.3752, allocations: 4 kB / 0.5634 GB, free: 1.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004178/0.3757, allocations: 202.3 kB / 0.5636 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.3757, allocations: 4 kB / 0.5636 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3757, allocations: 4 kB / 0.5636 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/0.3759, allocations: 44.77 kB / 0.5636 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.3761, allocations: 35.92 kB / 0.5637 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/0.3778, allocations: 1.61 MB / 0.5653 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.153e-05/0.3778, allocations: 15.95 kB / 0.5653 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.3779, allocations: 7.984 kB / 0.5653 GB, free: 15.1 MB / 414.1 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.0001331/0.378, allocations: 133.7 kB / 0.5654 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.865e-05/0.378, allocations: 15.94 kB / 0.5654 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.085e-05/0.3781, allocations: 12.78 kB / 0.5654 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3781, allocations: 4 kB / 0.5654 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3781, allocations: 0 / 0.5654 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3781, allocations: 3.938 kB / 0.5654 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007659/0.3789, allocations: 489.7 kB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3789, allocations: 0 / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.379, allocations: 35.98 kB / 0.5659 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001124/0.3791, allocations: 32.83 kB / 0.566 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.3792, allocations: 4 kB / 0.566 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/0.3803, allocations: 1.351 MB / 0.5673 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3804, allocations: 0 / 0.5673 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005165/0.3809, allocations: 345.1 kB / 0.5676 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.446e-05/0.3809, allocations: 19.92 kB / 0.5676 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.3809, allocations: 144 / 0.5676 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.382e-05/0.381, allocations: 8 kB / 0.5676 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.427e-05/0.3811, allocations: 19.89 kB / 0.5677 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3811, allocations: 12.12 kB / 0.5677 GB, free: 12.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.494e-05/0.3811, allocations: 95.27 kB / 0.5678 GB, free: 12.37 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3811, allocations: 0 / 0.5678 GB, free: 12.37 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003546/0.3815, allocations: 44 kB / 0.5678 GB, free: 12.32 MB / 414.1 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.0001044/0.3816, allocations: 91.36 kB / 0.5679 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005153/0.3821, allocations: 254.8 kB / 0.5681 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3821, allocations: 4.062 kB / 0.5681 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002712/0.3824, allocations: 190.5 kB / 0.5683 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.3827, allocations: 23.92 kB / 0.5683 GB, free: 11.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008232/0.3836, allocations: 447.6 kB / 0.5688 GB, free: 11.28 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.3837, allocations: 115.7 kB / 0.5689 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.821e-05/0.3837, allocations: 9.375 kB / 0.5689 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.394e-05/0.3838, allocations: 19.42 kB / 0.5689 GB, free: 11.12 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3838, allocations: 0 / 0.5689 GB, free: 11.12 MB / 414.1 MB Notification: Performance of Templates: time 0.005251/0.389, allocations: 1.709 MB / 0.5706 GB, free: 9.422 MB / 414.1 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.433636751025915]