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.001247/0.001247, allocations: 113 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.001424/0.001424, allocations: 212.9 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 227.4 MB / 247.6 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1898/0.1898, allocations: 46.11 MB / 345 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 79.88 kB / 482 MB, free: 4.133 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2668, allocations: 62.43 MB / 0.5316 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002491/0.2694, allocations: 1.666 MB / 0.5333 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002346/0.2696, allocations: 115.4 kB / 0.5334 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.436e-05/0.2697, allocations: 6.438 kB / 0.5334 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.098e-05/0.2698, allocations: 13.45 kB / 0.5334 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.2699, allocations: 36.19 kB / 0.5334 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001035/0.27, allocations: 34.92 kB / 0.5335 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001393/0.2701, allocations: 125.9 kB / 0.5336 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.2703, allocations: 37.97 kB / 0.5336 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.543e-05/0.2703, allocations: 52.7 kB / 0.5337 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.809e-05/0.2704, allocations: 48.56 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.952e-05/0.2704, allocations: 9.875 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.953e-05/0.2705, allocations: 9.25 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.033e-05/0.2705, allocations: 22.67 kB / 0.5338 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.846e-05/0.2706, allocations: 57.3 kB / 0.5338 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.2707, allocations: 121.8 kB / 0.5339 GB, free: 11.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2707, allocations: 0 / 0.5339 GB, free: 11.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2707, allocations: 1.438 kB / 0.5339 GB, free: 11.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.2707, allocations: 0 / 0.5339 GB, free: 11.86 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.0004222/0.2712, allocations: 401.5 kB / 0.5343 GB, free: 11.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.193e-05/0.2712, allocations: 9.531 kB / 0.5343 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.2712, allocations: 22.7 kB / 0.5343 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001556/0.2714, allocations: 185.1 kB / 0.5345 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.2714, allocations: 9.359 kB / 0.5345 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.156e-05/0.2715, allocations: 16.75 kB / 0.5345 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001849/0.2716, allocations: 134.1 kB / 0.5347 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.2717, allocations: 6 kB / 0.5347 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.2717, allocations: 9.938 kB / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.2717, allocations: 1.938 kB / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.69e-05/0.2718, allocations: 55.47 kB / 0.5347 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006573/0.2725, allocations: 0.5453 MB / 0.5353 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001148/0.2726, allocations: 88.7 kB / 0.5354 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.664e-05/0.2726, allocations: 31.52 kB / 0.5354 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.2727, allocations: 5.312 kB / 0.5354 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.2727, allocations: 35.88 kB / 0.5354 GB, free: 10.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.153e-06/0.2727, allocations: 0 / 0.5354 GB, free: 10.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004973/0.2732, allocations: 303.1 kB / 0.5357 GB, free: 10.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.2733, allocations: 86.47 kB / 0.5358 GB, free: 10 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.178e-05/0.2733, allocations: 124.8 kB / 0.5359 GB, free: 9.883 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.2734, allocations: 27.08 kB / 0.5359 GB, free: 9.852 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.195e-05/0.2734, allocations: 113.2 kB / 0.5361 GB, free: 9.742 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.2735, allocations: 39.66 kB / 0.5361 GB, free: 9.707 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.093e-05/0.2735, allocations: 33.95 kB / 0.5361 GB, free: 9.676 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.2736, allocations: 321.5 kB / 0.5364 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.916e-05/0.2736, allocations: 24.36 kB / 0.5365 GB, free: 9.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.612e-05/0.2737, allocations: 82.39 kB / 0.5365 GB, free: 9.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.2739, allocations: 125.5 kB / 0.5367 GB, free: 9.129 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2739, allocations: 5.312 kB / 0.5367 GB, free: 9.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002512/0.2741, allocations: 168.5 kB / 0.5368 GB, free: 9.012 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.2741, allocations: 6.656 kB / 0.5368 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2742, allocations: 2.156 kB / 0.5368 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001581/0.2743, allocations: 42.98 kB / 0.5369 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.669e-05/0.2744, allocations: 21.78 kB / 0.5369 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001687/0.2761, allocations: 2.738 MB / 0.5396 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.199e-05/0.2762, allocations: 11.78 kB / 0.5396 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-06/0.2762, allocations: 9.188 kB / 0.5396 GB, free: 6.094 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 9.928e-05/0.2763, allocations: 121.7 kB / 0.5397 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.187e-05/0.2763, allocations: 7.625 kB / 0.5397 GB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.806e-05/0.2764, allocations: 21.11 kB / 0.5397 GB, free: 5.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.2764, allocations: 2 kB / 0.5397 GB, free: 5.945 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2764, allocations: 5.062 kB / 0.5397 GB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.2764, allocations: 1.062 kB / 0.5397 GB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002353/0.2766, allocations: 191.6 kB / 0.5399 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2766, allocations: 3.984 kB / 0.5399 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.099e-05/0.2767, allocations: 11.28 kB / 0.5399 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.243e-05/0.2768, allocations: 40.42 kB / 0.54 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.2769, allocations: 6.156 kB / 0.54 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001615/0.2785, allocations: 2.745 MB / 0.5427 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2785, allocations: 0 / 0.5427 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.2788, allocations: 307.4 kB / 0.5429 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.075e-05/0.2788, allocations: 83.02 kB / 0.543 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.2788, allocations: 6.094 kB / 0.543 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.769e-05/0.2789, allocations: 5.062 kB / 0.543 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.374e-05/0.2789, allocations: 7.969 kB / 0.543 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-06/0.279, allocations: 2.062 kB / 0.543 GB, free: 2.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.776e-05/0.279, allocations: 92.39 kB / 0.5431 GB, free: 2.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.279, allocations: 0 / 0.5431 GB, free: 2.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003356/0.2794, allocations: 32.91 kB / 0.5432 GB, free: 2.336 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 9.28e-05/0.2795, allocations: 104.1 kB / 0.5433 GB, free: 2.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003991/0.2799, allocations: 302.5 kB / 0.5436 GB, free: 1.973 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2799, allocations: 0 / 0.5436 GB, free: 1.973 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002218/0.2801, allocations: 262.9 kB / 0.5438 GB, free: 1.723 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.2805, allocations: 35.55 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.0006737/0.2812, allocations: 491 kB / 0.5443 GB, free: 1.289 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.2815, allocations: 0.7107 MB / 0.545 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.02e-05/0.2815, allocations: 12.84 kB / 0.545 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2815, allocations: 0 / 0.545 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of Templates: time 0.003795/0.2853, allocations: 2.449 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