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/ModelicaServices trunk/package.mo", uses=false) 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/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 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=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/ModelicaServices trunk/package.mo): time 0.001955/0.001955, allocations: 118.1 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002003/0.002003, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2371/0.2371, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001753, allocations: 83.86 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.439/0.4408, allocations: 62.43 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004148/0.4449, allocations: 2.862 MB / 0.5338 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.4464, allocations: 0.7638 MB / 0.5345 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.4466, allocations: 10.81 kB / 0.5345 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002067/0.4468, allocations: 62.25 kB / 0.5346 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002289/0.447, allocations: 124.6 kB / 0.5347 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003298/0.4474, allocations: 113.5 kB / 0.5348 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004168/0.4478, allocations: 430.6 kB / 0.5352 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002761/0.4481, allocations: 149.6 kB / 0.5354 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002683/0.4484, allocations: 167.2 kB / 0.5355 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.4486, allocations: 179.8 kB / 0.5357 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.604e-05/0.4487, allocations: 33.09 kB / 0.5357 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.4488, allocations: 38.33 kB / 0.5358 GB, free: 9.891 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.999e-05/0.4489, allocations: 83.06 kB / 0.5359 GB, free: 9.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.449, allocations: 192.1 kB / 0.536 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005579/0.4496, allocations: 447 kB / 0.5365 GB, free: 9.383 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4496, allocations: 7.938 kB / 0.5365 GB, free: 9.375 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4496, allocations: 0 / 0.5365 GB, free: 9.375 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.4496, allocations: 0 / 0.5365 GB, free: 9.375 MB / 398.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.0009678/0.4506, allocations: 0.6571 MB / 0.5371 GB, free: 8.797 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.4507, allocations: 9.312 kB / 0.5371 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/0.451, allocations: 61.41 kB / 0.5372 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.4514, allocations: 290.5 kB / 0.5375 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.468e-05/0.4514, allocations: 28.81 kB / 0.5375 GB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.2e-05/0.4515, allocations: 45.33 kB / 0.5375 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006399/0.4521, allocations: 394.7 kB / 0.5379 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.4522, allocations: 6.141 kB / 0.5379 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.4522, allocations: 16.53 kB / 0.5379 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.4522, allocations: 9.469 kB / 0.5379 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004187/0.4527, allocations: 217.8 kB / 0.5381 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002104/0.4548, allocations: 1.723 MB / 0.5398 GB, free: 6.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004236/0.4552, allocations: 266.2 kB / 0.5401 GB, free: 6.262 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.4554, allocations: 94.02 kB / 0.5402 GB, free: 6.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.4554, allocations: 3.906 kB / 0.5402 GB, free: 6.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.4554, allocations: 41.22 kB / 0.5402 GB, free: 6.133 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.834e-06/0.4554, allocations: 5.844 kB / 0.5402 GB, free: 6.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006332/0.4561, allocations: 267.4 kB / 0.5405 GB, free: 5.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.984e-05/0.4562, allocations: 217.7 kB / 0.5407 GB, free: 5.727 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002484/0.4564, allocations: 276.9 kB / 0.5409 GB, free: 5.531 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.4565, allocations: 31.17 kB / 0.541 GB, free: 5.496 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.4566, allocations: 245.2 kB / 0.5412 GB, free: 5.273 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.222e-05/0.4567, allocations: 125.5 kB / 0.5413 GB, free: 5.164 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.4568, allocations: 99.83 kB / 0.5414 GB, free: 5.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.4569, allocations: 346.1 kB / 0.5418 GB, free: 4.758 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.4571, allocations: 99.34 kB / 0.5418 GB, free: 4.715 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004054/0.4576, allocations: 430.5 kB / 0.5423 GB, free: 4.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006957/0.4583, allocations: 0.5724 MB / 0.5428 GB, free: 3.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-06/0.4583, allocations: 3.25 kB / 0.5428 GB, free: 3.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008553/0.4591, allocations: 0.524 MB / 0.5433 GB, free: 3.352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.4592, allocations: 18.47 kB / 0.5433 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.4592, allocations: 15.31 kB / 0.5434 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.031e-05/0.4592, allocations: 15.5 kB / 0.5434 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004281/0.4597, allocations: 148.9 kB / 0.5435 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.432e-05/0.4597, allocations: 20.06 kB / 0.5435 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003109/0.46, allocations: 71.08 kB / 0.5436 GB, free: 3.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.837e-05/0.4601, allocations: 31 kB / 0.5436 GB, free: 3.25 MB / 398.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.0002027/0.4603, allocations: 180.4 kB / 0.5438 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.4604, allocations: 36.34 kB / 0.5438 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.549e-05/0.4605, allocations: 34.08 kB / 0.5439 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.4605, allocations: 4.562 kB / 0.5439 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.4606, allocations: 6.391 kB / 0.5439 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.425e-06/0.4606, allocations: 2.469 kB / 0.5439 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.4619, allocations: 0.6515 MB / 0.5445 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4619, allocations: 6.344 kB / 0.5445 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004526/0.4624, allocations: 93.06 kB / 0.5446 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.4624, allocations: 3.844 kB / 0.5446 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.4624, allocations: 9.594 kB / 0.5446 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.4624, allocations: 6.688 kB / 0.5446 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/0.4624, allocations: 10.62 kB / 0.5446 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008474/0.4633, allocations: 0.8282 MB / 0.5455 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.95e-05/0.4634, allocations: 114.8 kB / 0.5456 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.259e-05/0.4635, allocations: 13.42 kB / 0.5456 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003443/0.4638, allocations: 8.5 kB / 0.5456 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.494e-05/0.4639, allocations: 25.88 kB / 0.5456 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.4639, allocations: 12.47 kB / 0.5456 GB, free: 1.555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001991/0.4641, allocations: 184.3 kB / 0.5458 GB, free: 1.426 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4641, allocations: 0 / 0.5458 GB, free: 1.426 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007364/0.4649, allocations: 99.55 kB / 0.5459 GB, free: 1.406 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.0001309/0.465, allocations: 107.3 kB / 0.546 GB, free: 1.305 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005611/0.4656, allocations: 294.8 kB / 0.5463 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.4656, allocations: 1.094 kB / 0.5463 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001675/0.4658, allocations: 93.48 kB / 0.5464 GB, free: 1.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009627/0.4667, allocations: 84.64 kB / 0.5464 GB, free: 1.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.4688, allocations: 1.552 MB / 0.548 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.4692, allocations: 0.8026 MB / 0.5487 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.4694, allocations: 39.27 kB / 0.5488 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.532e-05/0.4694, allocations: 31.44 kB / 0.5488 GB, free: 14.52 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4694, allocations: 4 kB / 0.5488 GB, free: 14.52 MB / 414.1 MB Notification: Performance of Templates: time 0.006441/0.4759, allocations: 3.011 MB / 0.5518 GB, free: 11.53 MB / 414.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches