Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 116 kB / 17.13 MB, free: 5.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 194.8 kB / 20.07 MB, free: 2.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.71/1.71, allocations: 207.6 MB / 230.4 MB, free: 4.039 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4676/0.4676, allocations: 44.23 MB / 326.5 MB, free: 6.855 MB / 254.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_3.2.3_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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002236/0.002236, allocations: 71.89 kB / 462.7 MB, free: 460 kB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3608, allocations: 60.98 MB / 0.5114 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003862/0.3646, allocations: 2.856 MB / 0.5142 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.3661, allocations: 0.7465 MB / 0.5149 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002034/0.3663, allocations: 6.531 kB / 0.5149 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002031/0.3665, allocations: 57.41 kB / 0.515 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002284/0.3667, allocations: 126.8 kB / 0.5151 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002847/0.367, allocations: 94 kB / 0.5152 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004643/0.3675, allocations: 431 kB / 0.5156 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002332/0.3677, allocations: 102.6 kB / 0.5157 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002453/0.368, allocations: 178.9 kB / 0.5158 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.3682, allocations: 175.6 kB / 0.516 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.098e-05/0.3683, allocations: 33 kB / 0.516 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.493e-05/0.3683, allocations: 31.62 kB / 0.5161 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.091e-05/0.3684, allocations: 78.69 kB / 0.5161 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.3686, allocations: 197.2 kB / 0.5163 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000439/0.369, allocations: 434.5 kB / 0.5168 GB, free: 9.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.369, allocations: 0 / 0.5168 GB, free: 9.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.369, allocations: 0 / 0.5168 GB, free: 9.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.369, allocations: 1.25 kB / 0.5168 GB, free: 9.398 MB / 382.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.001024/0.37, allocations: 0.6584 MB / 0.5174 GB, free: 8.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.146e-05/0.3701, allocations: 13.3 kB / 0.5174 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.3702, allocations: 40.95 kB / 0.5174 GB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.3706, allocations: 273.8 kB / 0.5177 GB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.3706, allocations: 29.38 kB / 0.5177 GB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.486e-05/0.3707, allocations: 48.31 kB / 0.5178 GB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005487/0.3713, allocations: 394.5 kB / 0.5182 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.696e-05/0.3713, allocations: 7.953 kB / 0.5182 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.138e-05/0.3713, allocations: 16 kB / 0.5182 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.3713, allocations: 12 kB / 0.5182 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003342/0.3717, allocations: 223.7 kB / 0.5184 GB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.3734, allocations: 1.723 MB / 0.5201 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003203/0.3737, allocations: 254.4 kB / 0.5203 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.3738, allocations: 90.06 kB / 0.5204 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.3739, allocations: 11.94 kB / 0.5204 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.3739, allocations: 46.5 kB / 0.5205 GB, free: 5.434 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.503e-06/0.3739, allocations: 0 / 0.5205 GB, free: 5.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0005751/0.3745, allocations: 265.7 kB / 0.5207 GB, free: 5.168 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.3745, allocations: 225.5 kB / 0.5209 GB, free: 4.898 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.3747, allocations: 270.9 kB / 0.5212 GB, free: 4.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.3747, allocations: 33.7 kB / 0.5212 GB, free: 4.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.3748, allocations: 244.1 kB / 0.5215 GB, free: 4.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.412e-05/0.3749, allocations: 127 kB / 0.5216 GB, free: 4.215 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.793e-05/0.375, allocations: 98.3 kB / 0.5217 GB, free: 4.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.998e-05/0.3751, allocations: 346.7 kB / 0.522 GB, free: 3.766 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.3752, allocations: 101.3 kB / 0.5221 GB, free: 3.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002985/0.3755, allocations: 428.8 kB / 0.5225 GB, free: 3.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/0.376, allocations: 0.5628 MB / 0.5231 GB, free: 2.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.376, allocations: 4 kB / 0.5231 GB, free: 2.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006428/0.3767, allocations: 0.5324 MB / 0.5236 GB, free: 1.824 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.3767, allocations: 8.625 kB / 0.5236 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.3767, allocations: 12 kB / 0.5236 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.279e-05/0.3768, allocations: 16 kB / 0.5236 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003824/0.3771, allocations: 147.8 kB / 0.5238 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.082e-05/0.3772, allocations: 20.42 kB / 0.5238 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.3774, allocations: 71.58 kB / 0.5239 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.169e-05/0.3775, allocations: 35.94 kB / 0.5239 GB, free: 1.52 MB / 382.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.0001346/0.3776, allocations: 181.5 kB / 0.5241 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.3777, allocations: 31.81 kB / 0.5241 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.653e-05/0.3778, allocations: 37.72 kB / 0.5241 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3778, allocations: 4 kB / 0.5241 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.3778, allocations: 4 kB / 0.5241 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3778, allocations: 0 / 0.5241 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.3788, allocations: 0.6515 MB / 0.5248 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3788, allocations: 4 kB / 0.5248 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004482/0.3793, allocations: 87.89 kB / 0.5249 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3793, allocations: 4 kB / 0.5249 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.3793, allocations: 8 kB / 0.5249 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.3793, allocations: 16.3 kB / 0.5249 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3793, allocations: 4.062 kB / 0.5249 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008672/0.3802, allocations: 0.8346 MB / 0.5257 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.674e-05/0.3803, allocations: 112.8 kB / 0.5258 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.874e-05/0.3803, allocations: 8 kB / 0.5258 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003397/0.3807, allocations: 15.94 kB / 0.5258 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.399e-05/0.3808, allocations: 23.97 kB / 0.5259 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.3808, allocations: 11.98 kB / 0.5259 GB, free: 15.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002014/0.381, allocations: 186 kB / 0.526 GB, free: 15.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.381, allocations: 0 / 0.526 GB, free: 15.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007398/0.3817, allocations: 95.89 kB / 0.5261 GB, free: 15.1 MB / 398.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.0001668/0.3819, allocations: 119 kB / 0.5263 GB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006053/0.3825, allocations: 286.1 kB / 0.5265 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.371e-06/0.3825, allocations: 4.062 kB / 0.5265 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001802/0.3827, allocations: 79.83 kB / 0.5266 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.3837, allocations: 82.45 kB / 0.5267 GB, free: 14.53 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002432/0.3861, allocations: 1.552 MB / 0.5282 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005115/0.3866, allocations: 0.7951 MB / 0.529 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001608/0.3868, allocations: 47.25 kB / 0.529 GB, free: 12.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.159e-05/0.3869, allocations: 31.44 kB / 0.529 GB, free: 12.03 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3869, allocations: 0 / 0.529 GB, free: 12.03 MB / 398.1 MB Notification: Performance of Templates: time 0.008118/0.395, allocations: 3.063 MB / 0.532 GB, free: 8.98 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.655448623932898]