Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001319/0.001319, allocations: 83.58 kB / 21.18 MB, free: 3.383 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.001506/0.001506, 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.931/0.931, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.2585/0.2585, allocations: 32.81 MB / 294.3 MB, free: 1.285 MB / 266.7 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.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.0.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.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 376 MB, free: 4.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.444e-05/1.562e-05, allocations: 6.312 kB / 376 MB, free: 4.676 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002705/0.00272, allocations: 2.86 MB / 378.9 MB, free: 1.797 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008876/0.003608, allocations: 0.7632 MB / 379.6 MB, free: 1.027 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.003719, allocations: 11.94 kB / 379.6 MB, free: 1.016 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.003845, allocations: 51.39 kB / 379.7 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001542/0.004, allocations: 142.7 kB / 379.8 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.004226, allocations: 111.8 kB / 379.9 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000298/0.004524, allocations: 453.6 kB / 380.4 MB, free: 276 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.004678, allocations: 98.14 kB / 380.5 MB, free: 168 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002483/0.004926, allocations: 267.4 kB / 380.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.005061, allocations: 123.7 kB / 380.9 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.628e-05/0.005097, allocations: 36 kB / 380.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.852e-05/0.005156, allocations: 36 kB / 380.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.641e-05/0.005202, allocations: 83.66 kB / 381 MB, free: 15.63 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.005302, allocations: 139.7 kB / 381.1 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002787/0.005581, allocations: 286.8 kB / 381.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.005583, allocations: 0 / 381.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.005583, allocations: 0 / 381.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.005588, allocations: 0 / 381.4 MB, free: 15.21 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.000614/0.006202, allocations: 0.6871 MB / 382.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.006234, allocations: 12.03 kB / 382.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.006405, allocations: 88.64 kB / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.00662, allocations: 228.4 kB / 382.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.00664, allocations: 25.38 kB / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.677e-05/0.006686, allocations: 44.33 kB / 382.5 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005149/0.007201, allocations: 360.9 kB / 382.9 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.007218, allocations: 12.12 kB / 382.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.007238, allocations: 16.38 kB / 382.9 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.007249, allocations: 19.94 kB / 382.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.007431, allocations: 139.8 kB / 383 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.00862, allocations: 1.955 MB / 385 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002422/0.008863, allocations: 289.8 kB / 385.3 MB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.318e-05/0.008936, allocations: 93.81 kB / 385.4 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.008953, allocations: 8 kB / 385.4 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.008975, allocations: 49.27 kB / 385.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.202e-06/0.008976, allocations: 0 / 385.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003276/0.009304, allocations: 209.2 kB / 385.6 MB, free: 10.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.839e-05/0.009372, allocations: 213.6 kB / 385.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.009542, allocations: 322.5 kB / 386.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.009561, allocations: 33.7 kB / 386.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.009674, allocations: 290.6 kB / 386.5 MB, free: 9.746 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.239e-05/0.009737, allocations: 131 kB / 386.6 MB, free: 9.617 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.222e-05/0.009819, allocations: 104 kB / 386.7 MB, free: 9.504 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.009948, allocations: 0.5079 MB / 387.2 MB, free: 8.984 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.831e-05/0.01003, allocations: 57.27 kB / 387.3 MB, free: 8.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.0103, allocations: 0.5119 MB / 387.8 MB, free: 8.199 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003911/0.01069, allocations: 0.636 MB / 388.4 MB, free: 7.344 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.0107, allocations: 4 kB / 388.4 MB, free: 7.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004418/0.01114, allocations: 484.9 kB / 388.9 MB, free: 6.859 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.01115, allocations: 12 kB / 388.9 MB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.01116, allocations: 12 kB / 388.9 MB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.01118, allocations: 16 kB / 388.9 MB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003181/0.0115, allocations: 144.5 kB / 389.1 MB, free: 6.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.983e-05/0.01152, allocations: 31.86 kB / 389.1 MB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001909/0.01171, allocations: 59.56 kB / 389.2 MB, free: 6.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.01174, allocations: 32 kB / 389.2 MB, free: 6.559 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 0.0002421/0.01198, allocations: 208.2 kB / 389.4 MB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.528e-05/0.01207, allocations: 43.75 kB / 389.4 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.949e-05/0.01211, allocations: 37.8 kB / 389.5 MB, free: 6.262 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.01212, allocations: 4 kB / 389.5 MB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.01212, allocations: 0 / 389.5 MB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.01212, allocations: 4 kB / 389.5 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007427/0.01287, allocations: 0.6486 MB / 390.1 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.01287, allocations: 0 / 390.1 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002428/0.01311, allocations: 87.88 kB / 390.2 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.01312, allocations: 4 kB / 390.2 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.01314, allocations: 12 kB / 390.2 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.01314, allocations: 4 kB / 390.2 MB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.01314, allocations: 4 kB / 390.2 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004846/0.01362, allocations: 1.093 MB / 391.3 MB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.701e-05/0.01366, allocations: 35.69 kB / 391.4 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/0.01369, allocations: 8 kB / 391.4 MB, free: 4.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001918/0.01388, allocations: 11.98 kB / 391.4 MB, free: 4.262 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.01393, allocations: 27.91 kB / 391.4 MB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.01394, allocations: 8 kB / 391.4 MB, free: 4.227 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.936e-05/0.01404, allocations: 203 kB / 391.6 MB, free: 4.031 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01404, allocations: 3.938 kB / 391.6 MB, free: 4.027 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004723/0.01451, allocations: 103.8 kB / 391.7 MB, free: 3.926 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.297e-05/0.01458, allocations: 110.3 kB / 391.8 MB, free: 3.809 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002584/0.01484, allocations: 240.5 kB / 392.1 MB, free: 3.574 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.01484, allocations: 0 / 392.1 MB, free: 3.574 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.253e-05/0.01491, allocations: 79.73 kB / 392.1 MB, free: 3.492 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005748/0.01549, allocations: 84.14 kB / 392.2 MB, free: 3.414 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.01674, allocations: 1.2 MB / 393.4 MB, free: 2.148 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.213e-05/0.01682, allocations: 108.5 kB / 393.5 MB, free: 2.023 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.156e-05/0.0169, allocations: 35.28 kB / 393.6 MB, free: 1.988 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.047e-05/0.01694, allocations: 32.48 kB / 393.6 MB, free: 1.957 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01694, allocations: 0 / 393.6 MB, free: 1.957 MB / 362.7 MB Notification: Performance of Templates: time 0.004424/0.02137, allocations: 2.886 MB / 396.5 MB, free: 15.12 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.1132180760614574]