Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001002/0.001002, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001027/0.001027, allocations: 161 kB / 24.56 MB, free: 16 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 0.9382/0.9382, allocations: 177.1 MB / 205 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] 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.251/0.251, allocations: 34.26 MB / 295.7 MB, free: 0.75 MB / 266.7 MB " [Timeout remaining time 180] 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.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_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_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 378 MB, free: 2.664 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.447e-05/1.581e-05, allocations: 2.312 kB / 378 MB, free: 2.66 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00274/0.002755, allocations: 2.872 MB / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008771/0.003632, allocations: 0.7593 MB / 381.7 MB, free: 15 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.003748, allocations: 7.938 kB / 381.7 MB, free: 15 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.003886, allocations: 63.31 kB / 381.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001533/0.00404, allocations: 138.8 kB / 381.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002294/0.004269, allocations: 103.8 kB / 382 MB, free: 14.7 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002948/0.004564, allocations: 457.6 kB / 382.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.004721, allocations: 98.12 kB / 382.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.004958, allocations: 267.4 kB / 382.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.005093, allocations: 131.6 kB / 382.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.61e-05/0.005129, allocations: 36 kB / 382.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.242e-05/0.005191, allocations: 36 kB / 383 MB, free: 13.68 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 3.936e-05/0.005231, allocations: 79.67 kB / 383 MB, free: 13.61 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 8.923e-05/0.00532, allocations: 139.7 kB / 383.2 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.005572, allocations: 290.9 kB / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005574, allocations: 3.938 kB / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005575, allocations: 0 / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.005579, allocations: 0 / 383.5 MB, free: 13.18 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.000555/0.006134, allocations: 0.6755 MB / 384.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.006166, allocations: 8.031 kB / 384.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.006324, allocations: 92.58 kB / 384.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/0.006534, allocations: 228.5 kB / 384.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.006553, allocations: 29.38 kB / 384.5 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.006597, allocations: 40.33 kB / 384.5 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003402/0.006937, allocations: 360.9 kB / 384.9 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.006954, allocations: 12.14 kB / 384.9 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.006975, allocations: 20.38 kB / 384.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.006986, allocations: 11.94 kB / 384.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.007161, allocations: 139.8 kB / 385.1 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.008454, allocations: 1.963 MB / 387 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.008696, allocations: 285.6 kB / 387.3 MB, free: 9.043 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.374e-05/0.00877, allocations: 93.91 kB / 387.4 MB, free: 8.922 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.008789, allocations: 11.94 kB / 387.4 MB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.00881, allocations: 41.39 kB / 387.4 MB, free: 8.859 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.263e-06/0.008811, allocations: 0 / 387.4 MB, free: 8.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003307/0.009142, allocations: 213.2 kB / 387.7 MB, free: 8.645 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/0.009201, allocations: 213.6 kB / 387.9 MB, free: 8.387 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.009367, allocations: 318.5 kB / 388.2 MB, free: 8.062 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.00938, allocations: 29.7 kB / 388.2 MB, free: 8.027 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.009489, allocations: 294.6 kB / 388.5 MB, free: 7.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.77e-05/0.009547, allocations: 127.1 kB / 388.6 MB, free: 7.605 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.77e-05/0.009625, allocations: 108 kB / 388.7 MB, free: 7.488 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.009742, allocations: 0.5079 MB / 389.2 MB, free: 6.969 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.4e-05/0.009816, allocations: 53.78 kB / 389.3 MB, free: 6.918 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002585/0.01007, allocations: 0.5235 MB / 389.8 MB, free: 6.176 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/0.01046, allocations: 0.6283 MB / 390.4 MB, free: 5.328 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.01046, allocations: 7.984 kB / 390.4 MB, free: 5.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004411/0.01091, allocations: 488.8 kB / 390.9 MB, free: 4.836 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.01092, allocations: 10.03 kB / 390.9 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.01093, allocations: 12 kB / 390.9 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.01095, allocations: 16.75 kB / 391 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.01118, allocations: 147.7 kB / 391.1 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.0112, allocations: 27.92 kB / 391.1 MB, free: 4.629 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.01134, allocations: 67.55 kB / 391.2 MB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.01136, allocations: 32 kB / 391.2 MB, free: 4.531 MB / 362.7 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 9.833e-05/0.01146, allocations: 204.3 kB / 391.4 MB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.164e-05/0.01155, allocations: 43.75 kB / 391.5 MB, free: 4.277 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.944e-05/0.01159, allocations: 33.8 kB / 391.5 MB, free: 4.242 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.01159, allocations: 4 kB / 391.5 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.0116, allocations: 4 kB / 391.5 MB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.0116, allocations: 3.984 kB / 391.5 MB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006624/0.01227, allocations: 0.6481 MB / 392.2 MB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.01227, allocations: 4 kB / 392.2 MB, free: 3.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.0125, allocations: 87.89 kB / 392.3 MB, free: 3.441 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.0125, allocations: 4 kB / 392.3 MB, free: 3.438 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.01252, allocations: 8 kB / 392.3 MB, free: 3.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.01252, allocations: 7.938 kB / 392.3 MB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.01252, allocations: 3.984 kB / 392.3 MB, free: 3.418 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004829/0.01301, allocations: 1.089 MB / 393.4 MB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.414e-05/0.01303, allocations: 31.75 kB / 393.4 MB, free: 2.262 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.538e-05/0.01306, allocations: 11.98 kB / 393.4 MB, free: 2.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.01323, allocations: 8 kB / 393.4 MB, free: 2.242 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.222e-05/0.01327, allocations: 27.84 kB / 393.4 MB, free: 2.215 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.467e-06/0.01328, allocations: 12.11 kB / 393.5 MB, free: 2.203 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.681e-05/0.01336, allocations: 203 kB / 393.7 MB, free: 2.008 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01336, allocations: 0 / 393.7 MB, free: 2.008 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004164/0.01378, allocations: 99.83 kB / 393.7 MB, free: 1.91 MB / 362.7 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 7.14e-05/0.01385, allocations: 114.4 kB / 393.9 MB, free: 1.789 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002581/0.01411, allocations: 248 kB / 394.1 MB, free: 1.547 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.01411, allocations: 0 / 394.1 MB, free: 1.547 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.965e-05/0.01418, allocations: 79.52 kB / 394.2 MB, free: 1.465 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000567/0.01475, allocations: 64.31 kB / 394.2 MB, free: 1.402 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.01598, allocations: 1.201 MB / 395.4 MB, free: 140 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.508e-05/0.01606, allocations: 104.6 kB / 395.5 MB, free: 16 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.201e-05/0.01615, allocations: 47.25 kB / 395.6 MB, free: 15.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.495e-05/0.01619, allocations: 28.5 kB / 395.6 MB, free: 15.94 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01619, allocations: 0 / 395.6 MB, free: 15.94 MB / 378.7 MB Notification: Performance of Templates: time 0.0047/0.02089, allocations: 2.89 MB / 398.5 MB, free: 13.11 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.238002146128565]