Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.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.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization",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.001287/0.001287, allocations: 117.1 kB / 17.78 MB, free: 5.246 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.001209/0.001208, allocations: 184.2 kB / 18.72 MB, free: 4.32 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.42/1.42, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2112/0.2112, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 63.91 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3542, allocations: 60.83 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.01107/0.3653, allocations: 10.26 MB / 0.5285 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00875/0.3742, allocations: 3.78 MB / 0.5321 GB, free: 9.332 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003071/0.3773, allocations: 58 kB / 0.5322 GB, free: 9.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004598/0.3819, allocations: 1.954 MB / 0.5341 GB, free: 7.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005207/0.3872, allocations: 1.694 MB / 0.5358 GB, free: 6.812 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001852/0.3891, allocations: 0.6121 MB / 0.5364 GB, free: 6.395 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005527/0.3947, allocations: 3.331 MB / 0.5396 GB, free: 4.605 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004237/0.399, allocations: 2.585 MB / 0.5421 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002981/0.402, allocations: 1.239 MB / 0.5434 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003055/0.4051, allocations: 1.685 MB / 0.545 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001005/0.4061, allocations: 252 kB / 0.5452 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002728/0.4089, allocations: 1.034 MB / 0.5462 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002116/0.411, allocations: 1.574 MB / 0.5478 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003249/0.4143, allocations: 1.833 MB / 0.5496 GB, free: 12.11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009609/0.424, allocations: 5.874 MB / 0.5553 GB, free: 6.207 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.766e-06/0.424, allocations: 0 / 0.5553 GB, free: 6.207 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.424, allocations: 0 / 0.5553 GB, free: 6.207 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002455/0.4243, allocations: 4 kB / 0.5553 GB, free: 6.203 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.01032/0.4346, allocations: 4.133 MB / 0.5593 GB, free: 1.996 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.4347, allocations: 8.031 kB / 0.5594 GB, free: 1.988 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00167/0.4364, allocations: 0.6043 MB / 0.5599 GB, free: 1.375 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006958/0.4433, allocations: 1.816 MB / 0.5617 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005526/0.4489, allocations: 2.268 MB / 0.5639 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002285/0.4492, allocations: 201 kB / 0.5641 GB, free: 13.03 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001244/0.4504, allocations: 255.8 kB / 0.5644 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01569/0.4662, allocations: 8.432 MB / 0.5726 GB, free: 3.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001527/0.4663, allocations: 39.64 kB / 0.5726 GB, free: 3.641 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007891/0.4672, allocations: 123.9 kB / 0.5728 GB, free: 3.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002896/0.4701, allocations: 1.703 MB / 0.5744 GB, free: 1.816 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01378/0.4839, allocations: 7.098 MB / 0.5814 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04346/0.5274, allocations: 34.08 MB / 0.6146 GB, free: 7.641 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007714/0.5351, allocations: 3.275 MB / 0.6178 GB, free: 4.211 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002171/0.5373, allocations: 1.465 MB / 0.6193 GB, free: 2.73 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008095/0.5455, allocations: 4.378 MB / 0.6235 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.011e-05/0.5456, allocations: 43.12 kB / 0.6236 GB, free: 14.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=121): time 4.92e-06/0.5456, allocations: 0 / 0.6236 GB, free: 14.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=129): time 0.03134/0.5769, allocations: 11.71 MB / 0.635 GB, free: 2.25 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/0.5771, allocations: 170.9 kB / 0.6352 GB, free: 2.047 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006981/0.5841, allocations: 3.735 MB / 0.6388 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003339/0.5844, allocations: 45.7 kB / 0.6389 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00221/0.5867, allocations: 2.866 MB / 0.6417 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000739/0.5874, allocations: 0.539 MB / 0.6422 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00187/0.5893, allocations: 1.087 MB / 0.6433 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.492e-05/0.5894, allocations: 309.1 kB / 0.6436 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002488/0.5919, allocations: 1.697 MB / 0.6452 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004809/0.5968, allocations: 5.123 MB / 0.6502 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008296/0.6051, allocations: 7.403 MB / 0.6574 GB, free: 7.758 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001303/0.6053, allocations: 36 kB / 0.6575 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01296/0.6182, allocations: 6.71 MB / 0.664 GB, free: 1.008 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001614/0.6184, allocations: 61.38 kB / 0.6641 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002467/0.6187, allocations: 124 kB / 0.6642 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000809/0.6195, allocations: 320.7 kB / 0.6645 GB, free: 0.5117 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004085/0.6236, allocations: 1.24 MB / 0.6657 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002806/0.6265, allocations: 2.493 MB / 0.6682 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003919/0.6304, allocations: 291.6 kB / 0.6684 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009667/0.6314, allocations: 339.9 kB / 0.6688 GB, free: 12.02 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003647/0.6351, allocations: 1.787 MB / 0.6705 GB, free: 10.22 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008032/0.6359, allocations: 325.8 kB / 0.6708 GB, free: 9.902 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005123/0.6411, allocations: 2.363 MB / 0.6731 GB, free: 7.523 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.1e-05/0.6411, allocations: 16 kB / 0.6731 GB, free: 7.508 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/0.6412, allocations: 4 kB / 0.6731 GB, free: 7.504 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.257e-05/0.6412, allocations: 7.984 kB / 0.6732 GB, free: 7.496 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01455/0.6557, allocations: 5.914 MB / 0.6789 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.97e-05/0.6558, allocations: 8.062 kB / 0.6789 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009853/0.6568, allocations: 167.8 kB / 0.6791 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00226/0.6591, allocations: 0.7147 MB / 0.6798 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002187/0.6594, allocations: 27.94 kB / 0.6798 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006125/0.6655, allocations: 4.821 MB / 0.6845 GB, free: 11.63 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.6656, allocations: 7.938 kB / 0.6845 GB, free: 11.62 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007099/0.6727, allocations: 4.335 MB / 0.6888 GB, free: 7.254 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.6737, allocations: 378.7 kB / 0.6891 GB, free: 6.863 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004831/0.6742, allocations: 23.98 kB / 0.6892 GB, free: 6.84 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.6754, allocations: 79.91 kB / 0.6892 GB, free: 6.762 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.6756, allocations: 68.5 kB / 0.6893 GB, free: 6.695 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.971e-05/0.6757, allocations: 28 kB / 0.6893 GB, free: 6.668 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003354/0.6791, allocations: 2.327 MB / 0.6916 GB, free: 4.355 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.61e-07/0.6791, allocations: 0 / 0.6916 GB, free: 4.355 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004173/0.6833, allocations: 0.8163 MB / 0.6924 GB, free: 3.539 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006609/0.6899, allocations: 4.979 MB / 0.6973 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005936/0.6959, allocations: 4.034 MB / 0.7012 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.696, allocations: 4 kB / 0.7012 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001801/0.6978, allocations: 1.104 MB / 0.7023 GB, free: 9.375 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003328/0.7011, allocations: 392.2 kB / 0.7026 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.33/1.031, allocations: 37.71 MB / 0.7395 GB, free: 175.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003325/1.035, allocations: 2.782 MB / 0.7422 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003915/1.038, allocations: 1.659 MB / 0.7438 GB, free: 174 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002218/1.041, allocations: 1.528 MB / 0.7453 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.102e-06/1.041, allocations: 0 / 0.7453 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09019/1.131, allocations: 57.69 MB / 0.8016 GB, free: 123.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.95/24.08, allocations: 7.359 kB / 0.8017 GB, free: 123.1 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches