Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001335/0.001335, allocations: 121.7 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2409/0.2409, allocations: 46.13 MB / 344.3 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00226/0.00226, allocations: 75.88 kB / 480.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3565, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005028/0.3616, allocations: 2.854 MB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.3634, allocations: 0.773 MB / 0.5341 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003262/0.3638, allocations: 6.75 kB / 0.5341 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002239/0.364, allocations: 57.28 kB / 0.5342 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00034/0.3644, allocations: 129.5 kB / 0.5343 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003956/0.3648, allocations: 105 kB / 0.5344 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005924/0.3654, allocations: 439.5 kB / 0.5348 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002843/0.3657, allocations: 142.2 kB / 0.535 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003331/0.366, allocations: 171 kB / 0.5351 GB, free: 9.793 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002738/0.3663, allocations: 179.5 kB / 0.5353 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.801e-05/0.3664, allocations: 31.62 kB / 0.5353 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.938e-05/0.3665, allocations: 39.25 kB / 0.5354 GB, free: 9.668 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.057e-05/0.3666, allocations: 74.64 kB / 0.5354 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002214/0.3668, allocations: 204.6 kB / 0.5356 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007132/0.3675, allocations: 441.7 kB / 0.5361 GB, free: 9.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.3675, allocations: 0 / 0.5361 GB, free: 9.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3675, allocations: 3.938 kB / 0.5361 GB, free: 9.156 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.3676, allocations: 1.156 kB / 0.5361 GB, free: 9.156 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.001234/0.3688, allocations: 0.664 MB / 0.5367 GB, free: 8.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.3689, allocations: 9.969 kB / 0.5367 GB, free: 8.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.369, allocations: 81.98 kB / 0.5368 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004012/0.3694, allocations: 56.97 kB / 0.5369 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005242/0.3699, allocations: 279.2 kB / 0.5371 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.2e-05/0.37, allocations: 28.41 kB / 0.5371 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.329e-05/0.3701, allocations: 45.92 kB / 0.5372 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00073/0.3708, allocations: 393.8 kB / 0.5376 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.469e-05/0.3708, allocations: 6.797 kB / 0.5376 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.13e-05/0.3709, allocations: 23.73 kB / 0.5376 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.3709, allocations: 10.72 kB / 0.5376 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005013/0.3714, allocations: 219.2 kB / 0.5378 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002778/0.3742, allocations: 1.72 MB / 0.5395 GB, free: 6.203 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005099/0.3747, allocations: 264.8 kB / 0.5397 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.3749, allocations: 94.98 kB / 0.5398 GB, free: 5.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.375, allocations: 6.391 kB / 0.5398 GB, free: 5.879 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.375, allocations: 46.94 kB / 0.5399 GB, free: 5.828 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.515e-06/0.375, allocations: 0 / 0.5399 GB, free: 5.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.000768/0.3758, allocations: 269.1 kB / 0.5401 GB, free: 5.684 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001758/0.376, allocations: 210.1 kB / 0.5403 GB, free: 5.434 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003848/0.3764, allocations: 289.1 kB / 0.5406 GB, free: 5.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.09e-05/0.3764, allocations: 31.05 kB / 0.5407 GB, free: 5.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002182/0.3767, allocations: 240.2 kB / 0.5409 GB, free: 4.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.3768, allocations: 121.4 kB / 0.541 GB, free: 4.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.377, allocations: 100.9 kB / 0.5411 GB, free: 4.801 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002204/0.3772, allocations: 350.8 kB / 0.5414 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002288/0.3774, allocations: 90.45 kB / 0.5415 GB, free: 4.422 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005661/0.378, allocations: 434.5 kB / 0.5419 GB, free: 3.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008165/0.3788, allocations: 0.5677 MB / 0.5425 GB, free: 3.332 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.3789, allocations: 3.906 kB / 0.5425 GB, free: 3.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009467/0.3798, allocations: 0.5319 MB / 0.543 GB, free: 3.051 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.3798, allocations: 14.78 kB / 0.543 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/0.3799, allocations: 10.44 kB / 0.543 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.922e-05/0.3799, allocations: 15.56 kB / 0.543 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004354/0.3803, allocations: 146.1 kB / 0.5432 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.859e-05/0.3804, allocations: 26.36 kB / 0.5432 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003537/0.3807, allocations: 67.5 kB / 0.5433 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.314e-05/0.3808, allocations: 35.42 kB / 0.5433 GB, free: 2.953 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.000215/0.381, allocations: 187.8 kB / 0.5435 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001708/0.3812, allocations: 32.78 kB / 0.5435 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.675e-05/0.3813, allocations: 33.98 kB / 0.5435 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.3813, allocations: 4.5 kB / 0.5436 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.3813, allocations: 2.312 kB / 0.5436 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.3813, allocations: 6.391 kB / 0.5436 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/0.3828, allocations: 0.6556 MB / 0.5442 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.3828, allocations: 2.219 kB / 0.5442 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004599/0.3833, allocations: 85.39 kB / 0.5443 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/0.3833, allocations: 2.344 kB / 0.5443 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.455e-05/0.3833, allocations: 13.61 kB / 0.5443 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.458e-06/0.3834, allocations: 12 kB / 0.5443 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.3834, allocations: 2.344 kB / 0.5443 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009827/0.3843, allocations: 0.8414 MB / 0.5451 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.3845, allocations: 111.6 kB / 0.5452 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/0.3846, allocations: 12.12 kB / 0.5453 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003505/0.3849, allocations: 13.92 kB / 0.5453 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.986e-05/0.385, allocations: 14.2 kB / 0.5453 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.385, allocations: 15.33 kB / 0.5453 GB, free: 1.258 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002335/0.3853, allocations: 185 kB / 0.5455 GB, free: 1.129 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3853, allocations: 4 kB / 0.5455 GB, free: 1.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008548/0.3862, allocations: 99.8 kB / 0.5456 GB, free: 1.105 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.001264/0.3874, allocations: 1.385 MB / 0.5469 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006556/0.3881, allocations: 292.4 kB / 0.5472 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3881, allocations: 5.25 kB / 0.5472 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001813/0.3883, allocations: 89.17 kB / 0.5473 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.3894, allocations: 68.5 kB / 0.5474 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006465/0.3958, allocations: 4.95 MB / 0.5522 GB, free: 10.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004728/0.3963, allocations: 0.8067 MB / 0.553 GB, free: 9.406 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.3965, allocations: 43.27 kB / 0.553 GB, free: 9.359 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.3967, allocations: 115.4 kB / 0.5531 GB, free: 9.246 MB / 414.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3967, allocations: 0 / 0.5531 GB, free: 9.246 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03517/0.4319, allocations: 6.65 MB / 0.5596 GB, free: 2.715 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.993/9.425, allocations: 5.75 kB / 0.5596 GB, free: 2.711 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches