Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 111.4 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009675/0.0009677, allocations: 183 kB / 19.38 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1927/0.1927, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 67.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3282, allocations: 60.82 MB / 0.5195 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002384/0.3306, allocations: 1.65 MB / 0.5212 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002504/0.3309, allocations: 117.7 kB / 0.5213 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.309e-05/0.331, allocations: 2.375 kB / 0.5213 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 6.15e-05/0.3311, allocations: 14.06 kB / 0.5213 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.3312, allocations: 36.44 kB / 0.5213 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001185/0.3313, allocations: 23.06 kB / 0.5213 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001399/0.3314, allocations: 128.8 kB / 0.5215 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.3316, allocations: 40.95 kB / 0.5215 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.479e-05/0.3317, allocations: 46.3 kB / 0.5215 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.098e-05/0.3318, allocations: 47.7 kB / 0.5216 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.3318, allocations: 9.031 kB / 0.5216 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.366e-05/0.3318, allocations: 13 kB / 0.5216 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.489e-05/0.3319, allocations: 31.05 kB / 0.5216 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.729e-05/0.3319, allocations: 56.77 kB / 0.5217 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.3321, allocations: 124 kB / 0.5218 GB, free: 2.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3321, allocations: 1.312 kB / 0.5218 GB, free: 2.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.3321, allocations: 0 / 0.5218 GB, free: 2.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3321, allocations: 0 / 0.5218 GB, free: 2.086 MB / 382.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.0004196/0.3326, allocations: 410.4 kB / 0.5222 GB, free: 1.684 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.3326, allocations: 9.031 kB / 0.5222 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.118e-05/0.3326, allocations: 16.2 kB / 0.5222 GB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.3328, allocations: 188.2 kB / 0.5224 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.3328, allocations: 12.83 kB / 0.5224 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.708e-05/0.3329, allocations: 16.88 kB / 0.5224 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.3331, allocations: 132.5 kB / 0.5226 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.421e-05/0.3331, allocations: 2.219 kB / 0.5226 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.3331, allocations: 9.094 kB / 0.5226 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.3331, allocations: 2.344 kB / 0.5226 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.3332, allocations: 57.3 kB / 0.5226 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005953/0.3338, allocations: 0.5435 MB / 0.5232 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001082/0.334, allocations: 90.19 kB / 0.5232 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.617e-05/0.334, allocations: 30 kB / 0.5233 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.334, allocations: 6.156 kB / 0.5233 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.193e-05/0.334, allocations: 32.66 kB / 0.5233 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.283e-06/0.334, allocations: 0 / 0.5233 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004856/0.3345, allocations: 303.8 kB / 0.5236 GB, free: 476 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.355e-05/0.3346, allocations: 83.38 kB / 0.5237 GB, free: 376 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.333e-05/0.3346, allocations: 123.5 kB / 0.5238 GB, free: 264 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.364e-06/0.3347, allocations: 25.7 kB / 0.5238 GB, free: 232 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.3347, allocations: 122.2 kB / 0.5239 GB, free: 116 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.3347, allocations: 35.28 kB / 0.524 GB, free: 88 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.744e-05/0.3348, allocations: 28.42 kB / 0.524 GB, free: 64 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.3349, allocations: 325.6 kB / 0.5243 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.165e-05/0.335, allocations: 25.58 kB / 0.5243 GB, free: 15.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.952e-05/0.335, allocations: 87.06 kB / 0.5244 GB, free: 15.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000136/0.3352, allocations: 125.1 kB / 0.5245 GB, free: 15.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3352, allocations: 0 / 0.5245 GB, free: 15.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002681/0.3355, allocations: 168.4 kB / 0.5247 GB, free: 15.42 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.3355, allocations: 8.719 kB / 0.5247 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3355, allocations: 2.281 kB / 0.5247 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00017/0.3357, allocations: 46.39 kB / 0.5248 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.262e-05/0.3358, allocations: 21.7 kB / 0.5248 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001867/0.3376, allocations: 2.739 MB / 0.5275 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.353e-05/0.3377, allocations: 15.81 kB / 0.5275 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.3377, allocations: 6.219 kB / 0.5275 GB, free: 12.56 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.000119/0.3379, allocations: 129.2 kB / 0.5276 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.543e-05/0.3379, allocations: 7.625 kB / 0.5276 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.659e-05/0.338, allocations: 15.2 kB / 0.5276 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.338, allocations: 1.719 kB / 0.5276 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.338, allocations: 6.953 kB / 0.5276 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.338, allocations: 0 / 0.5276 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002495/0.3382, allocations: 198 kB / 0.5278 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3383, allocations: 0.6562 kB / 0.5278 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.959e-05/0.3383, allocations: 14.17 kB / 0.5278 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.022e-05/0.3384, allocations: 31.48 kB / 0.5279 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.3385, allocations: 7.031 kB / 0.5279 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/0.3401, allocations: 2.735 MB / 0.5305 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3402, allocations: 160 / 0.5305 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002866/0.3404, allocations: 315.1 kB / 0.5308 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.609e-05/0.3405, allocations: 81.11 kB / 0.5309 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.3405, allocations: 5.906 kB / 0.5309 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.622e-05/0.3406, allocations: 1.062 kB / 0.5309 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.3406, allocations: 10.8 kB / 0.5309 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.3407, allocations: 6.219 kB / 0.5309 GB, free: 8.977 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.043e-05/0.3407, allocations: 96.86 kB / 0.531 GB, free: 8.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3407, allocations: 0 / 0.531 GB, free: 8.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003587/0.3411, allocations: 36.22 kB / 0.5311 GB, free: 8.887 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.000101/0.3412, allocations: 100.6 kB / 0.5312 GB, free: 8.793 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004501/0.3417, allocations: 309 kB / 0.5315 GB, free: 8.539 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3417, allocations: 0 / 0.5315 GB, free: 8.539 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002292/0.3419, allocations: 261.1 kB / 0.5317 GB, free: 8.301 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004568/0.3424, allocations: 24.08 kB / 0.5317 GB, free: 8.293 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007182/0.3431, allocations: 495.7 kB / 0.5322 GB, free: 7.891 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.3434, allocations: 0.7097 MB / 0.5329 GB, free: 7.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.037e-05/0.3434, allocations: 11.06 kB / 0.5329 GB, free: 7.184 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3434, allocations: 5.719 kB / 0.5329 GB, free: 7.18 MB / 398.1 MB Notification: Performance of Templates: time 0.004048/0.3475, allocations: 2.43 MB / 0.5353 GB, free: 6.195 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches