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: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001262/0.001262, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.378/1.378, allocations: 222.9 MB / 242.4 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.2187/0.2187, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 59.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3377, allocations: 60.83 MB / 0.5184 GB, free: 3.551 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003872/0.3416, allocations: 2.826 MB / 0.5212 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.3432, allocations: 0.6963 MB / 0.5219 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003484/0.3435, allocations: 6.688 kB / 0.5219 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.3438, allocations: 64.83 kB / 0.5219 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003476/0.3442, allocations: 124.4 kB / 0.522 GB, free: 0.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003567/0.3445, allocations: 88.8 kB / 0.5221 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005116/0.345, allocations: 437.7 kB / 0.5225 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000296/0.3454, allocations: 143.9 kB / 0.5227 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002779/0.3456, allocations: 168.7 kB / 0.5228 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002315/0.3459, allocations: 174 kB / 0.523 GB, free: 424 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.469e-05/0.346, allocations: 37.42 kB / 0.523 GB, free: 420 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.203e-05/0.346, allocations: 31.53 kB / 0.5231 GB, free: 420 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.875e-05/0.3461, allocations: 79.14 kB / 0.5232 GB, free: 364 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.3463, allocations: 197.2 kB / 0.5233 GB, free: 248 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005646/0.3469, allocations: 434.6 kB / 0.5238 GB, free: 72 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.3469, allocations: 0 / 0.5238 GB, free: 72 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3469, allocations: 0 / 0.5238 GB, free: 72 kB / 382.1 MB Notification: Performance of Transformations before backend: time 9.619e-06/0.3469, allocations: 1.156 kB / 0.5238 GB, free: 72 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.001022/0.3479, allocations: 0.655 MB / 0.5244 GB, free: 15.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.348, allocations: 8.969 kB / 0.5244 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.24e-05/0.3481, allocations: 76.16 kB / 0.5245 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.958e-05/0.3482, allocations: 41.72 kB / 0.5245 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005422/0.3487, allocations: 282.7 kB / 0.5248 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.15e-05/0.3488, allocations: 23.41 kB / 0.5248 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.877e-05/0.3488, allocations: 51.36 kB / 0.5249 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007421/0.3496, allocations: 389.2 kB / 0.5252 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.691e-05/0.3496, allocations: 12.38 kB / 0.5252 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.623e-05/0.3497, allocations: 23.97 kB / 0.5253 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.3497, allocations: 9.625 kB / 0.5253 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004483/0.3502, allocations: 220.4 kB / 0.5255 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002385/0.3526, allocations: 1.724 MB / 0.5272 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004458/0.353, allocations: 257.6 kB / 0.5274 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.3532, allocations: 96.28 kB / 0.5275 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.3532, allocations: 2.75 kB / 0.5275 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.3533, allocations: 52.03 kB / 0.5276 GB, free: 13.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.745e-06/0.3533, allocations: 0 / 0.5276 GB, free: 13.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006877/0.354, allocations: 267.3 kB / 0.5278 GB, free: 13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.3541, allocations: 213.8 kB / 0.528 GB, free: 12.74 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000271/0.3544, allocations: 277.5 kB / 0.5283 GB, free: 12.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.3544, allocations: 31.08 kB / 0.5283 GB, free: 12.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/0.3546, allocations: 244.5 kB / 0.5285 GB, free: 12.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.433e-05/0.3547, allocations: 124.8 kB / 0.5287 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.3548, allocations: 104.4 kB / 0.5288 GB, free: 12.1 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.355, allocations: 350.1 kB / 0.5291 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001988/0.3552, allocations: 96.08 kB / 0.5292 GB, free: 11.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.3556, allocations: 426.6 kB / 0.5296 GB, free: 11.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006625/0.3562, allocations: 0.5677 MB / 0.5301 GB, free: 10.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.585e-06/0.3563, allocations: 3.688 kB / 0.5302 GB, free: 10.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008518/0.3571, allocations: 0.5243 MB / 0.5307 GB, free: 10.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.3572, allocations: 9.062 kB / 0.5307 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.3572, allocations: 11.16 kB / 0.5307 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.127e-05/0.3572, allocations: 19.67 kB / 0.5307 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004388/0.3577, allocations: 145.5 kB / 0.5308 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.422e-05/0.3577, allocations: 23.33 kB / 0.5309 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.358, allocations: 67.77 kB / 0.5309 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.822e-05/0.3581, allocations: 30.94 kB / 0.531 GB, free: 10.27 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.000191/0.3583, allocations: 184.5 kB / 0.5311 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.3584, allocations: 35.72 kB / 0.5312 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.569e-05/0.3585, allocations: 34.31 kB / 0.5312 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.3585, allocations: 4.375 kB / 0.5312 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.083e-05/0.3586, allocations: 2.781 kB / 0.5312 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3586, allocations: 5.344 kB / 0.5312 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.3599, allocations: 0.6603 MB / 0.5319 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.3599, allocations: 2.156 kB / 0.5319 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004474/0.3604, allocations: 88.19 kB / 0.5319 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.3604, allocations: 3.562 kB / 0.5319 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.3604, allocations: 9.25 kB / 0.532 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.774e-06/0.3604, allocations: 7.75 kB / 0.532 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.3604, allocations: 10.66 kB / 0.532 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007865/0.3612, allocations: 0.8338 MB / 0.5328 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.3614, allocations: 110.4 kB / 0.5329 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.942e-05/0.3615, allocations: 17.69 kB / 0.5329 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003334/0.3618, allocations: 8.688 kB / 0.5329 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.227e-05/0.3619, allocations: 30.75 kB / 0.5329 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.3619, allocations: 7.188 kB / 0.533 GB, free: 8.566 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001718/0.3621, allocations: 184.2 kB / 0.5331 GB, free: 8.441 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3621, allocations: 0 / 0.5331 GB, free: 8.441 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000796/0.3629, allocations: 102.2 kB / 0.5332 GB, free: 8.418 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.001089/0.364, allocations: 1.379 MB / 0.5346 GB, free: 7.164 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006932/0.3647, allocations: 303.2 kB / 0.5349 GB, free: 7.031 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3647, allocations: 0 / 0.5349 GB, free: 7.031 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.3649, allocations: 95.14 kB / 0.535 GB, free: 6.992 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.3661, allocations: 73.11 kB / 0.535 GB, free: 6.949 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006217/0.3723, allocations: 4.907 MB / 0.5398 GB, free: 2.625 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.3728, allocations: 0.7962 MB / 0.5406 GB, free: 1.875 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.373, allocations: 46.91 kB / 0.5406 GB, free: 1.852 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.3732, allocations: 123.2 kB / 0.5408 GB, free: 1.75 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3732, allocations: 4 kB / 0.5408 GB, free: 1.746 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03119/0.4044, allocations: 6.595 MB / 0.5472 GB, free: 13.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.428/8.833, allocations: 8.484 kB / 0.5472 GB, free: 13.56 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.csv","/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