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.001084/0.001084, allocations: 108 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00119/0.00119, allocations: 211.8 kB / 19.4 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2144/0.2144, allocations: 46.09 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 87.86 kB / 482 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.325, allocations: 62.42 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00414/0.3292, allocations: 2.865 MB / 0.5344 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.3308, allocations: 0.7715 MB / 0.5352 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003563/0.3312, allocations: 14.81 kB / 0.5352 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002418/0.3315, allocations: 62.25 kB / 0.5353 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003565/0.3318, allocations: 120.6 kB / 0.5354 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004079/0.3322, allocations: 106.5 kB / 0.5355 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005949/0.3329, allocations: 442.4 kB / 0.5359 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002854/0.3332, allocations: 141.1 kB / 0.536 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003712/0.3335, allocations: 173.7 kB / 0.5362 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003042/0.3339, allocations: 180.5 kB / 0.5364 GB, free: 9.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.448e-05/0.3339, allocations: 32.12 kB / 0.5364 GB, free: 9.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001288/0.3341, allocations: 39 kB / 0.5364 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.384e-05/0.3341, allocations: 78.28 kB / 0.5365 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.3343, allocations: 197.2 kB / 0.5367 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000508/0.3348, allocations: 439.7 kB / 0.5371 GB, free: 9.406 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3349, allocations: 0 / 0.5371 GB, free: 9.406 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3349, allocations: 3.938 kB / 0.5371 GB, free: 9.402 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.674e-05/0.3349, allocations: 1.062 kB / 0.5371 GB, free: 9.402 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.001008/0.3359, allocations: 0.6518 MB / 0.5378 GB, free: 8.828 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.336, allocations: 9.719 kB / 0.5378 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002993/0.3363, allocations: 61.44 kB / 0.5378 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004164/0.3367, allocations: 282.4 kB / 0.5381 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.3367, allocations: 32.62 kB / 0.5381 GB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.36e-05/0.3368, allocations: 45.12 kB / 0.5382 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00065/0.3375, allocations: 394.6 kB / 0.5386 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.833e-05/0.3375, allocations: 3.531 kB / 0.5386 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.255e-05/0.3375, allocations: 15.5 kB / 0.5386 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.3376, allocations: 10.34 kB / 0.5386 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004517/0.338, allocations: 225.3 kB / 0.5388 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00219/0.3402, allocations: 1.723 MB / 0.5405 GB, free: 6.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004368/0.3407, allocations: 261.7 kB / 0.5407 GB, free: 6.297 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.3408, allocations: 91.08 kB / 0.5408 GB, free: 6.219 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.3409, allocations: 7.281 kB / 0.5408 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.3409, allocations: 45.98 kB / 0.5409 GB, free: 6.164 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.854e-06/0.3409, allocations: 0 / 0.5409 GB, free: 6.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006868/0.3416, allocations: 265.7 kB / 0.5411 GB, free: 6.023 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.704e-05/0.3417, allocations: 212.8 kB / 0.5413 GB, free: 5.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.342, allocations: 276.3 kB / 0.5416 GB, free: 5.574 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.342, allocations: 31.11 kB / 0.5416 GB, free: 5.539 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.3421, allocations: 240.3 kB / 0.5418 GB, free: 5.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.898e-05/0.3422, allocations: 112.8 kB / 0.542 GB, free: 5.223 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.3424, allocations: 108.5 kB / 0.5421 GB, free: 5.148 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3425, allocations: 351.2 kB / 0.5424 GB, free: 4.805 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.3427, allocations: 94.61 kB / 0.5425 GB, free: 4.766 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003959/0.3431, allocations: 422.6 kB / 0.5429 GB, free: 4.273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006422/0.3437, allocations: 0.5798 MB / 0.5435 GB, free: 3.676 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.05e-05/0.3438, allocations: 3.5 kB / 0.5435 GB, free: 3.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008849/0.3447, allocations: 0.5238 MB / 0.544 GB, free: 3.402 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.3447, allocations: 13.39 kB / 0.544 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.3447, allocations: 15.41 kB / 0.544 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.3447, allocations: 17.09 kB / 0.544 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004356/0.3452, allocations: 149.3 kB / 0.5442 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.576e-05/0.3452, allocations: 23.42 kB / 0.5442 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003366/0.3456, allocations: 62.56 kB / 0.5442 GB, free: 3.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/0.3456, allocations: 35.44 kB / 0.5443 GB, free: 3.305 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.0001862/0.3458, allocations: 183.6 kB / 0.5444 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.346, allocations: 33.09 kB / 0.5445 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.873e-05/0.3461, allocations: 34.67 kB / 0.5445 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.3461, allocations: 4.344 kB / 0.5445 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.3461, allocations: 6.156 kB / 0.5445 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.3461, allocations: 1.031 kB / 0.5445 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001223/0.3473, allocations: 0.6529 MB / 0.5452 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3473, allocations: 2.219 kB / 0.5452 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004278/0.3478, allocations: 88.08 kB / 0.5452 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.3478, allocations: 3.375 kB / 0.5452 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/0.3478, allocations: 13.34 kB / 0.5453 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.443e-06/0.3478, allocations: 11.27 kB / 0.5453 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.3478, allocations: 6.156 kB / 0.5453 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007634/0.3486, allocations: 0.8315 MB / 0.5461 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.3487, allocations: 103.2 kB / 0.5462 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.304e-05/0.3488, allocations: 8.875 kB / 0.5462 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.3492, allocations: 13.44 kB / 0.5462 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.572e-05/0.3492, allocations: 30.25 kB / 0.5462 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.3493, allocations: 11.95 kB / 0.5462 GB, free: 1.617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001788/0.3494, allocations: 184.4 kB / 0.5464 GB, free: 1.488 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3494, allocations: 1.625 kB / 0.5464 GB, free: 1.488 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007835/0.3502, allocations: 102.1 kB / 0.5465 GB, free: 1.465 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.000127/0.3504, allocations: 111.3 kB / 0.5466 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005862/0.351, allocations: 299.8 kB / 0.5469 GB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.351, allocations: 0 / 0.5469 GB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001613/0.3511, allocations: 88.08 kB / 0.547 GB, free: 1.145 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009873/0.3521, allocations: 84.62 kB / 0.5471 GB, free: 1.066 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002132/0.3543, allocations: 1.563 MB / 0.5486 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.3547, allocations: 0.8065 MB / 0.5494 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.451e-05/0.3547, allocations: 27.44 kB / 0.5494 GB, free: 14.58 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3548, allocations: 4 kB / 0.5494 GB, free: 14.58 MB / 414.1 MB Notification: Performance of Templates: time 0.006416/0.3612, allocations: 4.181 MB / 0.5535 GB, free: 10.4 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches