Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001628/0.001628, allocations: 108.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 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.002051/0.002051, allocations: 216.5 kB / 24.47 MB, free: 4.359 MB / 14.72 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.565/1.565, allocations: 230.2 MB / 257.8 MB, free: 8.508 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2382/0.2382, allocations: 46.88 MB / 361.1 MB, free: 4.645 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002353/0.002353, allocations: 75.88 kB / 0.4967 GB, free: 7.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3625, allocations: 66 MB / 0.5612 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004433/0.3669, allocations: 2.867 MB / 0.564 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.3683, allocations: 0.779 MB / 0.5648 GB, free: 1.367 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.3685, allocations: 11.88 kB / 0.5648 GB, free: 1.355 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002243/0.3687, allocations: 59.38 kB / 0.5648 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00027/0.369, allocations: 130.9 kB / 0.5649 GB, free: 1.168 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003655/0.3693, allocations: 111.7 kB / 0.5651 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005268/0.3699, allocations: 434 kB / 0.5655 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.3701, allocations: 105.6 kB / 0.5656 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003022/0.3704, allocations: 179.4 kB / 0.5657 GB, free: 352 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002772/0.3707, allocations: 175.2 kB / 0.5659 GB, free: 176 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.436e-05/0.3707, allocations: 35.94 kB / 0.5659 GB, free: 140 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.376e-05/0.3708, allocations: 39.98 kB / 0.566 GB, free: 100 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.439e-05/0.3709, allocations: 79.69 kB / 0.5661 GB, free: 20 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002323/0.3711, allocations: 199.1 kB / 0.5662 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005554/0.3717, allocations: 440.9 kB / 0.5667 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3717, allocations: 3.938 kB / 0.5667 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3717, allocations: 0 / 0.5667 GB, free: 15.39 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.3717, allocations: 0 / 0.5667 GB, free: 15.39 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001142/0.3729, allocations: 0.6664 MB / 0.5673 GB, free: 14.68 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.3729, allocations: 12.03 kB / 0.5673 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000291/0.3732, allocations: 56.69 kB / 0.5674 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.3736, allocations: 276.6 kB / 0.5676 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.211e-05/0.3737, allocations: 33.36 kB / 0.5677 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.905e-05/0.3738, allocations: 52.27 kB / 0.5677 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006393/0.3744, allocations: 394.5 kB / 0.5681 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.3744, allocations: 3.953 kB / 0.5681 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.3745, allocations: 16 kB / 0.5681 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.3745, allocations: 12 kB / 0.5681 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000429/0.3749, allocations: 223.7 kB / 0.5683 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002305/0.3772, allocations: 1.711 MB / 0.57 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004753/0.3777, allocations: 258.3 kB / 0.5703 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.3778, allocations: 94.06 kB / 0.5704 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.3779, allocations: 0 / 0.5704 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/0.3779, allocations: 46.5 kB / 0.5704 GB, free: 11.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.343e-06/0.3779, allocations: 0 / 0.5704 GB, free: 11.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006952/0.3786, allocations: 265.2 kB / 0.5707 GB, free: 10.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.3787, allocations: 221.9 kB / 0.5709 GB, free: 10.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000285/0.379, allocations: 279.2 kB / 0.5711 GB, free: 10.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.379, allocations: 29.7 kB / 0.5712 GB, free: 10.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.3792, allocations: 252.1 kB / 0.5714 GB, free: 10.15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.573e-05/0.3793, allocations: 123 kB / 0.5715 GB, free: 10.03 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3794, allocations: 98.3 kB / 0.5716 GB, free: 9.926 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.3796, allocations: 350.7 kB / 0.5719 GB, free: 9.574 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.3798, allocations: 101.2 kB / 0.572 GB, free: 9.477 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004417/0.3802, allocations: 424.8 kB / 0.5724 GB, free: 8.902 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007159/0.381, allocations: 0.5745 MB / 0.573 GB, free: 8.168 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.381, allocations: 4 kB / 0.573 GB, free: 8.164 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008666/0.3818, allocations: 0.5287 MB / 0.5735 GB, free: 7.629 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.3819, allocations: 15.94 kB / 0.5735 GB, free: 7.613 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/0.3819, allocations: 12 kB / 0.5736 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.964e-05/0.3819, allocations: 16 kB / 0.5736 GB, free: 7.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004322/0.3823, allocations: 147.7 kB / 0.5737 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.153e-05/0.3824, allocations: 19.94 kB / 0.5737 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002818/0.3826, allocations: 67.55 kB / 0.5738 GB, free: 7.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.3827, allocations: 32.28 kB / 0.5738 GB, free: 7.324 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001791/0.3829, allocations: 181.5 kB / 0.574 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.383, allocations: 31.81 kB / 0.574 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.853e-05/0.3831, allocations: 33.83 kB / 0.5741 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.555e-06/0.3831, allocations: 8 kB / 0.5741 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3831, allocations: 0 / 0.5741 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3831, allocations: 7.984 kB / 0.5741 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/0.3843, allocations: 0.6519 MB / 0.5747 GB, free: 6.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3843, allocations: 4.125 kB / 0.5747 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004402/0.3848, allocations: 91.88 kB / 0.5748 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3848, allocations: 4 kB / 0.5748 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.3848, allocations: 12 kB / 0.5748 GB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.3848, allocations: 3.938 kB / 0.5748 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3848, allocations: 4 kB / 0.5748 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007975/0.3856, allocations: 0.8338 MB / 0.5756 GB, free: 5.355 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.155e-05/0.3857, allocations: 108.9 kB / 0.5757 GB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.753e-05/0.3858, allocations: 11.98 kB / 0.5758 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003361/0.3861, allocations: 11.94 kB / 0.5758 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.866e-05/0.3862, allocations: 28.09 kB / 0.5758 GB, free: 5.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.3862, allocations: 8 kB / 0.5758 GB, free: 5.172 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001772/0.3864, allocations: 190 kB / 0.576 GB, free: 4.984 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3864, allocations: 0 / 0.576 GB, free: 4.984 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006949/0.387, allocations: 95.89 kB / 0.5761 GB, free: 4.891 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001274/0.3872, allocations: 115.2 kB / 0.5762 GB, free: 4.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005147/0.3877, allocations: 281.5 kB / 0.5765 GB, free: 4.496 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3877, allocations: 0.75 kB / 0.5765 GB, free: 4.496 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.3879, allocations: 88.02 kB / 0.5765 GB, free: 4.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009521/0.3888, allocations: 80.2 kB / 0.5766 GB, free: 4.332 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/0.391, allocations: 1.564 MB / 0.5781 GB, free: 2.715 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004449/0.3915, allocations: 0.8026 MB / 0.5789 GB, free: 1.883 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001336/0.3916, allocations: 43.27 kB / 0.579 GB, free: 1.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.91e-05/0.3917, allocations: 31.42 kB / 0.579 GB, free: 1.809 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3917, allocations: 0 / 0.579 GB, free: 1.809 MB / 414.1 MB Notification: Performance of Templates: time 0.007255/0.3989, allocations: 3.143 MB / 0.5821 GB, free: 14.68 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.349420159123838]