Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001209/0.001209, allocations: 117.6 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3652/0.3652, allocations: 44.83 MB / 392.7 MB, free: 34.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 59.91 kB / 465.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3508, allocations: 62.01 MB / 0.5151 GB, free: 37.95 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003457/0.3543, allocations: 2.888 MB / 0.518 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.3554, allocations: 0.7314 MB / 0.5187 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.3556, allocations: 9.781 kB / 0.5187 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.3557, allocations: 41.61 kB / 0.5187 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.3559, allocations: 109.7 kB / 0.5188 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002356/0.3562, allocations: 77.25 kB / 0.5189 GB, free: 35.22 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.3565, allocations: 425 kB / 0.5193 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/0.3567, allocations: 117.8 kB / 0.5194 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002552/0.357, allocations: 149.2 kB / 0.5196 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.3572, allocations: 180.3 kB / 0.5197 GB, free: 34.8 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.429e-05/0.3573, allocations: 22.28 kB / 0.5198 GB, free: 34.8 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.624e-05/0.3574, allocations: 25 kB / 0.5198 GB, free: 34.8 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.301e-05/0.3574, allocations: 72.89 kB / 0.5199 GB, free: 34.76 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.3576, allocations: 182.1 kB / 0.52 GB, free: 34.66 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003851/0.358, allocations: 420.7 kB / 0.5204 GB, free: 34.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.358, allocations: 0 / 0.5204 GB, free: 34.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.358, allocations: 0 / 0.5204 GB, free: 34.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.358, allocations: 0 / 0.5204 GB, free: 34.49 MB / 378.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.0009633/0.359, allocations: 0.6448 MB / 0.5211 GB, free: 33.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.3591, allocations: 8.469 kB / 0.5211 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002961/0.3594, allocations: 57.95 kB / 0.5211 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003159/0.3597, allocations: 276.6 kB / 0.5214 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.703e-05/0.3597, allocations: 27.97 kB / 0.5214 GB, free: 33.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.91e-05/0.3598, allocations: 46.52 kB / 0.5215 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006101/0.3605, allocations: 399.9 kB / 0.5218 GB, free: 33.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.3605, allocations: 10.59 kB / 0.5218 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.065e-05/0.3605, allocations: 14.59 kB / 0.5219 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.3605, allocations: 11.53 kB / 0.5219 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003728/0.3609, allocations: 215.4 kB / 0.5221 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001999/0.3629, allocations: 1.733 MB / 0.5238 GB, free: 31.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004382/0.3634, allocations: 259.9 kB / 0.524 GB, free: 31.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.3636, allocations: 95.64 kB / 0.5241 GB, free: 31.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.007e-05/0.3636, allocations: 9.781 kB / 0.5241 GB, free: 31.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.3637, allocations: 49.22 kB / 0.5242 GB, free: 31.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.705e-06/0.3637, allocations: 4 kB / 0.5242 GB, free: 31.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0007058/0.3644, allocations: 258.8 kB / 0.5244 GB, free: 31.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.3645, allocations: 215.7 kB / 0.5246 GB, free: 31.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002375/0.3647, allocations: 271.3 kB / 0.5249 GB, free: 31.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.3647, allocations: 32.98 kB / 0.5249 GB, free: 31.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.3649, allocations: 240.2 kB / 0.5251 GB, free: 30.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.837e-05/0.3649, allocations: 114.1 kB / 0.5252 GB, free: 30.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.3651, allocations: 101.1 kB / 0.5253 GB, free: 30.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.875e-05/0.3652, allocations: 344.5 kB / 0.5257 GB, free: 30.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.3653, allocations: 97.73 kB / 0.5258 GB, free: 30.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003667/0.3657, allocations: 429.9 kB / 0.5262 GB, free: 29.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005482/0.3663, allocations: 0.5685 MB / 0.5267 GB, free: 29.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.3663, allocations: 2.812 kB / 0.5267 GB, free: 29.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007775/0.3671, allocations: 0.5292 MB / 0.5273 GB, free: 29.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.211e-05/0.3671, allocations: 12.39 kB / 0.5273 GB, free: 29.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.3671, allocations: 16 kB / 0.5273 GB, free: 29.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.402e-05/0.3672, allocations: 14.91 kB / 0.5273 GB, free: 29.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004237/0.3676, allocations: 144.4 kB / 0.5274 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.174e-05/0.3676, allocations: 22.83 kB / 0.5275 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002938/0.3679, allocations: 71.28 kB / 0.5275 GB, free: 29.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.368, allocations: 29.84 kB / 0.5275 GB, free: 29 MB / 378.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.0001611/0.3682, allocations: 180.6 kB / 0.5277 GB, free: 28.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.3683, allocations: 32.41 kB / 0.5278 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.799e-05/0.3684, allocations: 36.59 kB / 0.5278 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3684, allocations: 2.812 kB / 0.5278 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.3684, allocations: 2.906 kB / 0.5278 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3684, allocations: 2.719 kB / 0.5278 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.3695, allocations: 0.6508 MB / 0.5284 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3695, allocations: 6.938 kB / 0.5284 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004125/0.3699, allocations: 93.86 kB / 0.5285 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.3699, allocations: 3.031 kB / 0.5285 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.37, allocations: 9.031 kB / 0.5285 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-06/0.37, allocations: 6.562 kB / 0.5285 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.37, allocations: 6.531 kB / 0.5286 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.3724, allocations: 2.536 MB / 0.531 GB, free: 26.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.644e-05/0.3724, allocations: 111.2 kB / 0.5311 GB, free: 26.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.226e-05/0.3725, allocations: 9.75 kB / 0.5311 GB, free: 26.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003074/0.3728, allocations: 6.875 kB / 0.5312 GB, free: 26.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.749e-05/0.3729, allocations: 33.98 kB / 0.5312 GB, free: 26.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.3729, allocations: 8.594 kB / 0.5312 GB, free: 26.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001462/0.3731, allocations: 186.5 kB / 0.5314 GB, free: 26.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3731, allocations: 0 / 0.5314 GB, free: 26.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008887/0.374, allocations: 139.1 kB / 0.5315 GB, free: 26.04 MB / 378.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 0.0001556/0.3741, allocations: 105.4 kB / 0.5316 GB, free: 25.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005229/0.3747, allocations: 295.2 kB / 0.5319 GB, free: 25.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3747, allocations: 0.8125 kB / 0.5319 GB, free: 25.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.3748, allocations: 93.88 kB / 0.532 GB, free: 25.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009872/0.3758, allocations: 59.47 kB / 0.532 GB, free: 25.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.3783, allocations: 1.876 MB / 0.5339 GB, free: 24.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.3787, allocations: 0.8051 MB / 0.5346 GB, free: 23.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002147/0.3789, allocations: 55.14 kB / 0.5347 GB, free: 23.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.239e-05/0.379, allocations: 26.84 kB / 0.5347 GB, free: 23.55 MB / 378.7 MB Notification: Performance of SimCode: time 6.62e-07/0.379, allocations: 0 / 0.5347 GB, free: 23.55 MB / 378.7 MB Notification: Performance of Templates: time 0.007368/0.3864, allocations: 3.108 MB / 0.5378 GB, free: 23.32 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches