Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001127/0.001128, allocations: 206.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2089/0.2089, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 79.88 kB / 482 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3526, allocations: 62.44 MB / 0.5316 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003509/0.3562, allocations: 1.675 MB / 0.5333 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004027/0.3566, allocations: 110.3 kB / 0.5334 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.3568, allocations: 6.25 kB / 0.5334 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.848e-05/0.3569, allocations: 14.05 kB / 0.5334 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.3571, allocations: 30.83 kB / 0.5334 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001594/0.3572, allocations: 35.95 kB / 0.5335 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002118/0.3575, allocations: 128.9 kB / 0.5336 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.3576, allocations: 26.88 kB / 0.5336 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.3578, allocations: 53.25 kB / 0.5337 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.373e-05/0.3579, allocations: 50.91 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.808e-05/0.3579, allocations: 13.62 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.152e-05/0.3579, allocations: 9.625 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.236e-05/0.358, allocations: 20.05 kB / 0.5337 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.103e-05/0.3581, allocations: 56.36 kB / 0.5338 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002287/0.3583, allocations: 129.8 kB / 0.5339 GB, free: 11.85 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3583, allocations: 0 / 0.5339 GB, free: 11.85 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3583, allocations: 1.375 kB / 0.5339 GB, free: 11.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.3583, allocations: 0 / 0.5339 GB, free: 11.85 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006166/0.359, allocations: 398.4 kB / 0.5343 GB, free: 11.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.359, allocations: 12.25 kB / 0.5343 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.185e-05/0.3591, allocations: 15.62 kB / 0.5343 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000206/0.3593, allocations: 193.9 kB / 0.5345 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.3593, allocations: 8.734 kB / 0.5345 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.3594, allocations: 16.53 kB / 0.5345 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.3597, allocations: 130.7 kB / 0.5347 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.3597, allocations: 5.547 kB / 0.5347 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.3597, allocations: 9.312 kB / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-06/0.3597, allocations: 6.75 kB / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001317/0.3599, allocations: 55.59 kB / 0.5347 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008859/0.3608, allocations: 0.5482 MB / 0.5353 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001494/0.3609, allocations: 86.02 kB / 0.5354 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.218e-05/0.361, allocations: 30.55 kB / 0.5354 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.361, allocations: 8.875 kB / 0.5354 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.3611, allocations: 37.03 kB / 0.5354 GB, free: 10.38 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.653e-06/0.3611, allocations: 0 / 0.5354 GB, free: 10.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006588/0.3617, allocations: 298.2 kB / 0.5357 GB, free: 10.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/0.3618, allocations: 78.39 kB / 0.5358 GB, free: 10 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.3619, allocations: 124.8 kB / 0.5359 GB, free: 9.883 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.3619, allocations: 31.23 kB / 0.5359 GB, free: 9.848 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.812e-05/0.362, allocations: 113 kB / 0.536 GB, free: 9.738 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.3621, allocations: 35.92 kB / 0.5361 GB, free: 9.707 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.236e-05/0.3621, allocations: 30.28 kB / 0.5361 GB, free: 9.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3623, allocations: 325.4 kB / 0.5364 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.096e-05/0.3623, allocations: 23.73 kB / 0.5364 GB, free: 9.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.116e-05/0.3624, allocations: 87.14 kB / 0.5365 GB, free: 9.246 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.3626, allocations: 121.2 kB / 0.5366 GB, free: 9.129 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.3626, allocations: 4.969 kB / 0.5366 GB, free: 9.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003538/0.3629, allocations: 165.4 kB / 0.5368 GB, free: 9.016 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.363, allocations: 6.812 kB / 0.5368 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.363, allocations: 2.188 kB / 0.5368 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002336/0.3632, allocations: 42.86 kB / 0.5369 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.3634, allocations: 26.27 kB / 0.5369 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002234/0.3656, allocations: 2.738 MB / 0.5396 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.243e-05/0.3657, allocations: 11.75 kB / 0.5396 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.3657, allocations: 5.812 kB / 0.5396 GB, free: 6.098 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.3658, allocations: 121.5 kB / 0.5397 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.689e-05/0.3659, allocations: 7.75 kB / 0.5397 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.366, allocations: 18.59 kB / 0.5397 GB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.366, allocations: 1.281 kB / 0.5397 GB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.366, allocations: 1.344 kB / 0.5397 GB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.366, allocations: 3.984 kB / 0.5397 GB, free: 5.949 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003041/0.3663, allocations: 200.4 kB / 0.5399 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3663, allocations: 3.938 kB / 0.5399 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.047e-05/0.3664, allocations: 15.23 kB / 0.5399 GB, free: 5.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001057/0.3665, allocations: 32.3 kB / 0.54 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.3665, allocations: 17.22 kB / 0.54 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002116/0.3687, allocations: 2.738 MB / 0.5426 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3687, allocations: 1.062 kB / 0.5426 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.369, allocations: 302.6 kB / 0.5429 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.886e-05/0.3691, allocations: 87.3 kB / 0.543 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.3691, allocations: 2.344 kB / 0.543 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.773e-05/0.3692, allocations: 4.062 kB / 0.543 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.196e-05/0.3692, allocations: 11.98 kB / 0.543 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.3692, allocations: 2.5 kB / 0.543 GB, free: 2.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.303e-05/0.3693, allocations: 89.03 kB / 0.5431 GB, free: 2.344 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3693, allocations: 0 / 0.5431 GB, free: 2.344 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003818/0.3697, allocations: 32.06 kB / 0.5432 GB, free: 2.34 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001312/0.3698, allocations: 107.8 kB / 0.5433 GB, free: 2.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004953/0.3703, allocations: 306.9 kB / 0.5435 GB, free: 1.969 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3703, allocations: 0 / 0.5435 GB, free: 1.969 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002574/0.3706, allocations: 263.2 kB / 0.5438 GB, free: 1.719 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005082/0.3711, allocations: 37.45 kB / 0.5438 GB, free: 1.699 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008312/0.372, allocations: 492.5 kB / 0.5443 GB, free: 1.285 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.3722, allocations: 0.7119 MB / 0.545 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.489e-05/0.3723, allocations: 11.44 kB / 0.545 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3723, allocations: 1.125 kB / 0.545 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of Templates: time 0.005254/0.3775, allocations: 2.442 MB / 0.5474 GB, free: 15.29 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches