Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 112.7 kB / 18.45 MB, free: 4.645 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.001112/0.001113, allocations: 181.2 kB / 19.38 MB, free: 3.727 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.253/1.253, allocations: 222.9 MB / 243.1 MB, free: 15.09 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.199/0.199, allocations: 44.19 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 63.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3155, allocations: 60.82 MB / 0.5196 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003352/0.3189, allocations: 2.832 MB / 0.5223 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.32, allocations: 0.7007 MB / 0.523 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001909/0.3202, allocations: 11.59 kB / 0.523 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.3204, allocations: 56.16 kB / 0.5231 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002222/0.3206, allocations: 117.7 kB / 0.5232 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.3209, allocations: 93.72 kB / 0.5233 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003883/0.3213, allocations: 441.1 kB / 0.5237 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002309/0.3215, allocations: 137.3 kB / 0.5238 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002039/0.3217, allocations: 180.1 kB / 0.524 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000209/0.3219, allocations: 173.6 kB / 0.5242 GB, free: 484 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.559e-05/0.322, allocations: 32.66 kB / 0.5242 GB, free: 484 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.358e-05/0.3221, allocations: 32.69 kB / 0.5242 GB, free: 484 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.896e-05/0.3221, allocations: 80.02 kB / 0.5243 GB, free: 428 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001497/0.3223, allocations: 195.9 kB / 0.5245 GB, free: 312 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005576/0.3229, allocations: 433 kB / 0.5249 GB, free: 140 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3229, allocations: 4 kB / 0.5249 GB, free: 136 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3229, allocations: 0 / 0.5249 GB, free: 136 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.636e-05/0.3229, allocations: 1.781 kB / 0.5249 GB, free: 136 kB / 382.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.0009901/0.3239, allocations: 0.6436 MB / 0.5255 GB, free: 15.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.3239, allocations: 8.156 kB / 0.5255 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.68e-05/0.324, allocations: 41.69 kB / 0.5256 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003598/0.3244, allocations: 282.2 kB / 0.5258 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.3244, allocations: 24.5 kB / 0.5259 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.246e-05/0.3245, allocations: 45.77 kB / 0.5259 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006409/0.3251, allocations: 394.7 kB / 0.5263 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/0.3252, allocations: 8.641 kB / 0.5263 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.3252, allocations: 19.75 kB / 0.5263 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.3252, allocations: 13.66 kB / 0.5263 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004307/0.3257, allocations: 216.3 kB / 0.5265 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002123/0.3278, allocations: 1.722 MB / 0.5282 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003853/0.3282, allocations: 260.8 kB / 0.5285 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.3284, allocations: 95.02 kB / 0.5286 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.3284, allocations: 2.75 kB / 0.5286 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.3284, allocations: 50.62 kB / 0.5286 GB, free: 13.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.014e-06/0.3284, allocations: 0 / 0.5286 GB, free: 13.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006412/0.3291, allocations: 269.2 kB / 0.5289 GB, free: 13.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.355e-05/0.3292, allocations: 213.8 kB / 0.5291 GB, free: 12.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002534/0.3295, allocations: 272.7 kB / 0.5293 GB, free: 12.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.3295, allocations: 31.11 kB / 0.5294 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.3296, allocations: 232.5 kB / 0.5296 GB, free: 12.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.804e-05/0.3297, allocations: 116.7 kB / 0.5297 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.3298, allocations: 100.9 kB / 0.5298 GB, free: 12.19 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.33, allocations: 350.2 kB / 0.5301 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.3302, allocations: 98.72 kB / 0.5302 GB, free: 11.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003823/0.3306, allocations: 430.5 kB / 0.5306 GB, free: 11.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006433/0.3312, allocations: 0.5645 MB / 0.5312 GB, free: 10.72 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.3312, allocations: 4.031 kB / 0.5312 GB, free: 10.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008197/0.3321, allocations: 0.5275 MB / 0.5317 GB, free: 10.44 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.3321, allocations: 9.156 kB / 0.5317 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.3321, allocations: 16.31 kB / 0.5317 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.89e-05/0.3322, allocations: 14.47 kB / 0.5317 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004192/0.3326, allocations: 149.2 kB / 0.5319 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.484e-05/0.3326, allocations: 24.31 kB / 0.5319 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.3329, allocations: 70.55 kB / 0.532 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.91e-05/0.333, allocations: 31.06 kB / 0.532 GB, free: 10.34 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.000178/0.3332, allocations: 179.9 kB / 0.5322 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.3333, allocations: 36.03 kB / 0.5322 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.944e-05/0.3334, allocations: 34.44 kB / 0.5322 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3334, allocations: 4.25 kB / 0.5322 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.3334, allocations: 2.094 kB / 0.5322 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3334, allocations: 10.08 kB / 0.5322 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001298/0.3347, allocations: 0.6561 MB / 0.5329 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.3348, allocations: 2.344 kB / 0.5329 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004511/0.3352, allocations: 81.11 kB / 0.533 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.708e-06/0.3352, allocations: 2.5 kB / 0.533 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.3353, allocations: 17.17 kB / 0.533 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.3353, allocations: 8.469 kB / 0.533 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.3353, allocations: 5.281 kB / 0.533 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000723/0.336, allocations: 0.8382 MB / 0.5338 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.594e-05/0.3361, allocations: 107.9 kB / 0.5339 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.3362, allocations: 8.531 kB / 0.5339 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003211/0.3365, allocations: 16.64 kB / 0.5339 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.548e-05/0.3366, allocations: 26.28 kB / 0.534 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.3366, allocations: 8.875 kB / 0.534 GB, free: 8.648 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.3367, allocations: 182.4 kB / 0.5342 GB, free: 8.523 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3367, allocations: 0 / 0.5342 GB, free: 8.523 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007237/0.3375, allocations: 98.72 kB / 0.5342 GB, free: 8.504 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.000115/0.3376, allocations: 108.3 kB / 0.5344 GB, free: 8.402 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005155/0.3381, allocations: 292.4 kB / 0.5346 GB, free: 8.281 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3381, allocations: 5.312 kB / 0.5346 GB, free: 8.277 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001535/0.3383, allocations: 88.7 kB / 0.5347 GB, free: 8.242 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009388/0.3392, allocations: 77.95 kB / 0.5348 GB, free: 8.195 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.3413, allocations: 1.561 MB / 0.5363 GB, free: 6.898 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003781/0.3417, allocations: 0.7932 MB / 0.5371 GB, free: 6.152 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.435e-05/0.3418, allocations: 30.19 kB / 0.5371 GB, free: 6.145 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3418, allocations: 0 / 0.5371 GB, free: 6.145 MB / 398.1 MB Notification: Performance of Templates: time 0.00758/0.3494, allocations: 4.15 MB / 0.5412 GB, free: 3.961 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches