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.001239/0.001239, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001339/0.001339, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.388/1.388, allocations: 222.9 MB / 242.3 MB, free: 15.2 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.207/0.207, allocations: 44.17 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 61.86 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1356, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.0116/0.1472, allocations: 10.24 MB / 479.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008114/0.1554, allocations: 3.806 MB / 483.4 MB, free: 148 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.1574, allocations: 55.88 kB / 483.5 MB, free: 92 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004523/0.1619, allocations: 1.946 MB / 485.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005716/0.1678, allocations: 1.661 MB / 487.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001932/0.1697, allocations: 0.6122 MB / 487.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005607/0.1753, allocations: 3.321 MB / 491 MB, free: 8.527 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004017/0.1794, allocations: 2.584 MB / 493.6 MB, free: 5.891 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002717/0.1821, allocations: 1.242 MB / 494.8 MB, free: 4.645 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00292/0.1851, allocations: 1.67 MB / 496.5 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001047/0.1862, allocations: 252 kB / 496.7 MB, free: 2.723 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002764/0.1889, allocations: 1.03 MB / 497.8 MB, free: 1.691 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002271/0.1912, allocations: 1.562 MB / 499.3 MB, free: 128 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003679/0.195, allocations: 1.841 MB / 0.4894 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007033/0.202, allocations: 5.623 MB / 0.4949 GB, free: 8.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2021, allocations: 7.938 kB / 0.4949 GB, free: 8.625 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2021, allocations: 0 / 0.4949 GB, free: 8.625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001639/0.2022, allocations: 0 / 0.4949 GB, free: 8.625 MB / 382.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.007969/0.2102, allocations: 4.026 MB / 0.4989 GB, free: 4.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.2103, allocations: 12.03 kB / 0.4989 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009768/0.2113, allocations: 0.6043 MB / 0.4995 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00636/0.2176, allocations: 1.786 MB / 0.5012 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.239/0.4567, allocations: 2.218 MB / 0.5034 GB, free: 45.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002578/0.457, allocations: 194.5 kB / 0.5036 GB, free: 45.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001251/0.4583, allocations: 255.7 kB / 0.5038 GB, free: 45.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01595/0.4742, allocations: 8.435 MB / 0.512 GB, free: 41.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001187/0.4744, allocations: 43.64 kB / 0.5121 GB, free: 41.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003478/0.4748, allocations: 128.7 kB / 0.5122 GB, free: 41.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00373/0.4785, allocations: 1.696 MB / 0.5139 GB, free: 41.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01322/0.4918, allocations: 7.099 MB / 0.5208 GB, free: 39.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03072/0.5225, allocations: 34.16 MB / 0.5542 GB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006224/0.5288, allocations: 3.274 MB / 0.5573 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/0.5302, allocations: 1.465 MB / 0.5588 GB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005658/0.5359, allocations: 4.376 MB / 0.5631 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.553e-05/0.536, allocations: 43.12 kB / 0.5631 GB, free: 13.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 3.186e-06/0.536, allocations: 0 / 0.5631 GB, free: 13.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.02995/0.5659, allocations: 11.52 MB / 0.5743 GB, free: 1.496 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.304e-05/0.566, allocations: 166.9 kB / 0.5745 GB, free: 1.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004468/0.5705, allocations: 3.73 MB / 0.5781 GB, free: 13.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002225/0.5708, allocations: 41.7 kB / 0.5782 GB, free: 13.53 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001767/0.5725, allocations: 2.756 MB / 0.5809 GB, free: 10.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005515/0.5731, allocations: 0.5209 MB / 0.5814 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0012/0.5743, allocations: 1.075 MB / 0.5824 GB, free: 9.117 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.602e-05/0.5744, allocations: 301.1 kB / 0.5827 GB, free: 8.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002221/0.5766, allocations: 1.697 MB / 0.5844 GB, free: 7.117 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004262/0.5809, allocations: 5.122 MB / 0.5894 GB, free: 276 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008451/0.5894, allocations: 7.397 MB / 0.5966 GB, free: 7.164 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.34e-05/0.5895, allocations: 36 kB / 0.5966 GB, free: 7.129 MB / 430.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01195/0.6015, allocations: 6.703 MB / 0.6032 GB, free: 428 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.6016, allocations: 56 kB / 0.6032 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001922/0.6018, allocations: 124 kB / 0.6034 GB, free: 248 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007493/0.6026, allocations: 321.4 kB / 0.6037 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003944/0.6066, allocations: 1.244 MB / 0.6049 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003087/0.6097, allocations: 2.5 MB / 0.6073 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004299/0.614, allocations: 287.5 kB / 0.6076 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009257/0.615, allocations: 332 kB / 0.6079 GB, free: 11.43 MB / 446.1 MB 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.003871/0.6188, allocations: 1.788 MB / 0.6097 GB, free: 9.633 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/0.6199, allocations: 315.9 kB / 0.61 GB, free: 9.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005358/0.6253, allocations: 2.362 MB / 0.6123 GB, free: 6.949 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.47e-05/0.6253, allocations: 19.97 kB / 0.6123 GB, free: 6.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.6253, allocations: 8 kB / 0.6123 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/0.6254, allocations: 7.984 kB / 0.6123 GB, free: 6.914 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/0.6383, allocations: 5.921 MB / 0.6181 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.568e-05/0.6384, allocations: 4 kB / 0.6181 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008478/0.6392, allocations: 179.8 kB / 0.6183 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00209/0.6413, allocations: 0.7069 MB / 0.6189 GB, free: 36 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/0.6415, allocations: 20 kB / 0.619 GB, free: 16 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005796/0.6473, allocations: 4.822 MB / 0.6237 GB, free: 11.05 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.6473, allocations: 4 kB / 0.6237 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006912/0.6542, allocations: 4.327 MB / 0.6279 GB, free: 6.684 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000931/0.6552, allocations: 365 kB / 0.6283 GB, free: 6.305 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007111/0.6559, allocations: 23.98 kB / 0.6283 GB, free: 6.281 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/0.6574, allocations: 67.91 kB / 0.6283 GB, free: 6.215 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/0.6576, allocations: 68.62 kB / 0.6284 GB, free: 6.148 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.6577, allocations: 36 kB / 0.6284 GB, free: 6.113 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004161/0.6619, allocations: 2.327 MB / 0.6307 GB, free: 3.801 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6619, allocations: 0 / 0.6307 GB, free: 3.801 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0053/0.6672, allocations: 0.8073 MB / 0.6315 GB, free: 2.996 MB / 462.1 MB 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.007804/0.6751, allocations: 4.971 MB / 0.6364 GB, free: 13.99 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007639/0.6827, allocations: 4.411 MB / 0.6407 GB, free: 9.602 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.6828, allocations: 0 / 0.6407 GB, free: 9.602 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001592/0.6844, allocations: 1.111 MB / 0.6417 GB, free: 8.477 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003299/0.6877, allocations: 393.1 kB / 0.6421 GB, free: 8.098 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0661/0.7538, allocations: 42.23 MB / 0.6834 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003571/0.7574, allocations: 2.777 MB / 0.6861 GB, free: 4.191 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004495/0.7619, allocations: 1.668 MB / 0.6877 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002694/0.7647, allocations: 1.522 MB / 0.6892 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of SimCode: time 2.946e-06/0.7647, allocations: 0 / 0.6892 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3275/1.092, allocations: 61.24 MB / 0.749 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/12.24, allocations: 5.562 kB / 0.749 GB, free: 165.7 MB / 0.5294 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