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.00191/0.00191, allocations: 113.8 kB / 17.77 MB, free: 5.363 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.002181/0.002182, allocations: 183.1 kB / 18.7 MB, free: 4.434 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.492/1.492, allocations: 222.9 MB / 242.4 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.2244/0.2244, allocations: 44.18 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 67.89 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3612, allocations: 60.83 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003536/0.3648, allocations: 2.822 MB / 0.5212 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.3659, allocations: 0.701 MB / 0.5219 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002169/0.3662, allocations: 11.41 kB / 0.5219 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.3664, allocations: 50.55 kB / 0.5219 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.3666, allocations: 127.9 kB / 0.522 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.3669, allocations: 89.53 kB / 0.5221 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004342/0.3674, allocations: 432.2 kB / 0.5225 GB, free: 412 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.3676, allocations: 148.2 kB / 0.5227 GB, free: 336 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.3679, allocations: 156.9 kB / 0.5228 GB, free: 268 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002315/0.3681, allocations: 177.8 kB / 0.523 GB, free: 176 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.099e-05/0.3682, allocations: 36.5 kB / 0.523 GB, free: 172 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.808e-05/0.3683, allocations: 33.31 kB / 0.5231 GB, free: 172 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.104e-05/0.3683, allocations: 78.67 kB / 0.5231 GB, free: 116 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.3685, allocations: 196.8 kB / 0.5233 GB, free: 0 / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006122/0.3691, allocations: 437.8 kB / 0.5237 GB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3691, allocations: 1.156 kB / 0.5237 GB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3691, allocations: 0 / 0.5237 GB, free: 15.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.3692, allocations: 0 / 0.5237 GB, free: 15.82 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001082/0.3703, allocations: 0.651 MB / 0.5244 GB, free: 15.29 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.3703, allocations: 10.88 kB / 0.5244 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.986e-05/0.3704, allocations: 75.17 kB / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.341e-05/0.3705, allocations: 41.7 kB / 0.5245 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004189/0.3709, allocations: 282.1 kB / 0.5248 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.371, allocations: 28.66 kB / 0.5248 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.384e-05/0.371, allocations: 42.38 kB / 0.5248 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006599/0.3717, allocations: 397.9 kB / 0.5252 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.867e-05/0.3717, allocations: 7.359 kB / 0.5252 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/0.3718, allocations: 20.06 kB / 0.5252 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.3718, allocations: 9.625 kB / 0.5253 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004492/0.3723, allocations: 220.8 kB / 0.5255 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.3747, allocations: 1.72 MB / 0.5271 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004812/0.3753, allocations: 265.4 kB / 0.5274 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.3754, allocations: 95.47 kB / 0.5275 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.3755, allocations: 4.375 kB / 0.5275 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.3755, allocations: 51.25 kB / 0.5275 GB, free: 12.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.164e-06/0.3755, allocations: 1.625 kB / 0.5275 GB, free: 12.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006995/0.3762, allocations: 264.6 kB / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/0.3764, allocations: 218.8 kB / 0.528 GB, free: 12.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.3767, allocations: 277.7 kB / 0.5283 GB, free: 12.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.3767, allocations: 32.45 kB / 0.5283 GB, free: 12.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.3769, allocations: 240.6 kB / 0.5285 GB, free: 12.08 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.377, allocations: 124.8 kB / 0.5286 GB, free: 11.97 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.3772, allocations: 104.8 kB / 0.5287 GB, free: 11.9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3773, allocations: 341.6 kB / 0.5291 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.3776, allocations: 104.2 kB / 0.5292 GB, free: 11.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004911/0.3781, allocations: 425.7 kB / 0.5296 GB, free: 11.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007781/0.3788, allocations: 0.5685 MB / 0.5301 GB, free: 10.44 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.3789, allocations: 3.031 kB / 0.5301 GB, free: 10.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001045/0.3799, allocations: 0.5235 MB / 0.5306 GB, free: 10.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.38, allocations: 10.69 kB / 0.5307 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.196e-05/0.38, allocations: 10.91 kB / 0.5307 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.878e-05/0.38, allocations: 16.78 kB / 0.5307 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005019/0.3805, allocations: 148.3 kB / 0.5308 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.177e-05/0.3806, allocations: 22.61 kB / 0.5308 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003869/0.381, allocations: 63.42 kB / 0.5309 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.996e-05/0.381, allocations: 40.53 kB / 0.5309 GB, free: 10.07 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.0002704/0.3813, allocations: 179.3 kB / 0.5311 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.3815, allocations: 36.55 kB / 0.5312 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.484e-05/0.3816, allocations: 33.84 kB / 0.5312 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/0.3816, allocations: 4.562 kB / 0.5312 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.958e-05/0.3816, allocations: 2.438 kB / 0.5312 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.752e-05/0.3816, allocations: 6.25 kB / 0.5312 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/0.3832, allocations: 0.6591 MB / 0.5318 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3833, allocations: 2.219 kB / 0.5318 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004764/0.3837, allocations: 88.72 kB / 0.5319 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.271e-05/0.3838, allocations: 7.562 kB / 0.5319 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.396e-05/0.3838, allocations: 9.844 kB / 0.5319 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.748e-06/0.3838, allocations: 6.469 kB / 0.5319 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.847e-06/0.3838, allocations: 2.938 kB / 0.532 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009549/0.3848, allocations: 0.8377 MB / 0.5328 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001144/0.3849, allocations: 111.5 kB / 0.5329 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/0.385, allocations: 13.28 kB / 0.5329 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.3853, allocations: 8.281 kB / 0.5329 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.177e-05/0.3854, allocations: 26.78 kB / 0.5329 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.3854, allocations: 11.16 kB / 0.5329 GB, free: 8.371 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001851/0.3856, allocations: 183.4 kB / 0.5331 GB, free: 8.246 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3856, allocations: 0 / 0.5331 GB, free: 8.246 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007996/0.3864, allocations: 103.9 kB / 0.5332 GB, free: 8.223 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.001179/0.3876, allocations: 1.381 MB / 0.5346 GB, free: 6.961 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006464/0.3883, allocations: 304.1 kB / 0.5348 GB, free: 6.832 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3883, allocations: 1.156 kB / 0.5348 GB, free: 6.832 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001807/0.3885, allocations: 92.73 kB / 0.5349 GB, free: 6.793 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.3896, allocations: 73 kB / 0.535 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006455/0.396, allocations: 4.919 MB / 0.5398 GB, free: 2.418 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004907/0.3966, allocations: 0.7966 MB / 0.5406 GB, free: 1.668 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001983/0.3968, allocations: 46.84 kB / 0.5406 GB, free: 1.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.3969, allocations: 114.2 kB / 0.5407 GB, free: 1.551 MB / 398.1 MB Notification: Performance of SimCode: time 1.092e-06/0.397, allocations: 1.375 kB / 0.5407 GB, free: 1.551 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03415/0.4311, allocations: 6.583 MB / 0.5472 GB, free: 13.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.081/9.512, allocations: 12.92 kB / 0.5472 GB, free: 13.45 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