Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",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.001102/0.001102, allocations: 111.7 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.001136/0.001136, 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.396/1.396, 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.2075/0.2075, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 63.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.3891, allocations: 60.82 MB / 0.5184 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01307/0.4022, allocations: 12.05 MB / 0.5302 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009364/0.4117, allocations: 4.292 MB / 0.5344 GB, free: 7.406 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002274/0.414, allocations: 76.09 kB / 0.5344 GB, free: 7.391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005286/0.4193, allocations: 2.733 MB / 0.5371 GB, free: 5.547 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006173/0.4255, allocations: 2.07 MB / 0.5391 GB, free: 4.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002524/0.4281, allocations: 0.9125 MB / 0.54 GB, free: 3.461 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01061/0.4387, allocations: 5.583 MB / 0.5455 GB, free: 264 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005708/0.4444, allocations: 3.361 MB / 0.5488 GB, free: 12.85 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00422/0.4487, allocations: 1.713 MB / 0.5504 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004945/0.4537, allocations: 2.528 MB / 0.5529 GB, free: 8.594 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001673/0.4554, allocations: 384 kB / 0.5533 GB, free: 8.219 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00452/0.4599, allocations: 1.416 MB / 0.5547 GB, free: 6.801 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003414/0.4634, allocations: 2.217 MB / 0.5568 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005598/0.469, allocations: 2.505 MB / 0.5593 GB, free: 2.059 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.011/0.48, allocations: 8.071 MB / 0.5671 GB, free: 9.957 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.4801, allocations: 0 / 0.5671 GB, free: 9.957 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4801, allocations: 4 kB / 0.5672 GB, free: 9.953 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002714/0.4804, allocations: 0 / 0.5672 GB, free: 9.953 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01432/0.4947, allocations: 5.837 MB / 0.5729 GB, free: 4.031 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.4948, allocations: 12.03 kB / 0.5729 GB, free: 4.02 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002142/0.4969, allocations: 0.7968 MB / 0.5736 GB, free: 3.211 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03777/0.5347, allocations: 5.985 MB / 0.5795 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01029/0.545, allocations: 4.092 MB / 0.5835 GB, free: 9.066 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002582/0.5453, allocations: 238.3 kB / 0.5837 GB, free: 8.832 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001444/0.5468, allocations: 335.7 kB / 0.584 GB, free: 8.504 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02345/0.5703, allocations: 10.78 MB / 0.5946 GB, free: 12.98 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003286/0.5706, allocations: 63.53 kB / 0.5946 GB, free: 12.92 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001907/0.5726, allocations: 151.9 kB / 0.5948 GB, free: 12.77 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003675/0.5763, allocations: 2.006 MB / 0.5967 GB, free: 10.76 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01804/0.5943, allocations: 9.233 MB / 0.6057 GB, free: 1.512 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05688/0.6512, allocations: 40.9 MB / 0.6457 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01183/0.6631, allocations: 4.227 MB / 0.6498 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002781/0.666, allocations: 1.881 MB / 0.6516 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01342/0.6794, allocations: 7.514 MB / 0.659 GB, free: 9.242 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.377e-05/0.6795, allocations: 55.44 kB / 0.659 GB, free: 9.176 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 4.238e-06/0.6795, allocations: 0 / 0.659 GB, free: 9.176 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1631/0.8426, allocations: 40.89 MB / 0.699 GB, free: 220 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.8427, allocations: 201.9 kB / 0.6992 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005834/0.8486, allocations: 4.342 MB / 0.7034 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005342/0.8491, allocations: 61.69 kB / 0.7035 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00215/0.8513, allocations: 3.35 MB / 0.7067 GB, free: 8.16 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001057/0.8524, allocations: 0.9108 MB / 0.7076 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001799/0.8542, allocations: 1.294 MB / 0.7089 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.541e-05/0.8543, allocations: 305.1 kB / 0.7092 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004626/0.8589, allocations: 3.495 MB / 0.7126 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2727/1.132, allocations: 7.105 MB / 0.7195 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01311/1.145, allocations: 11.37 MB / 0.7306 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000168/1.145, allocations: 39.03 kB / 0.7307 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03721/1.182, allocations: 15.71 MB / 0.746 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/1.182, allocations: 57.91 kB / 0.7461 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001569/1.183, allocations: 127.7 kB / 0.7462 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02196/1.204, allocations: 6.061 MB / 0.7521 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004552/1.209, allocations: 1.436 MB / 0.7535 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02774/1.237, allocations: 27.16 MB / 0.78 GB, free: 121.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006865/1.244, allocations: 399.2 kB / 0.7804 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007987/1.245, allocations: 382.8 kB / 0.7808 GB, free: 120.5 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (741): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003852/1.248, allocations: 2.208 MB / 0.7829 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/1.249, allocations: 423.7 kB / 0.7833 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02596/1.275, allocations: 11.05 MB / 0.7941 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.037e-05/1.276, allocations: 28 kB / 0.7941 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.072e-05/1.276, allocations: 12 kB / 0.7942 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.514e-05/1.276, allocations: 14.25 kB / 0.7942 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04025/1.316, allocations: 20.48 MB / 0.8142 GB, free: 86.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.942e-05/1.316, allocations: 8.375 kB / 0.8142 GB, free: 86.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001908/1.318, allocations: 387.5 kB / 0.8145 GB, free: 85.87 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.019/1.337, allocations: 5.148 MB / 0.8196 GB, free: 80.71 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003936/1.337, allocations: 40 kB / 0.8196 GB, free: 80.67 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02261/1.36, allocations: 22.24 MB / 0.8413 GB, free: 58.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/1.36, allocations: 4 kB / 0.8413 GB, free: 58.24 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02726/1.387, allocations: 14.34 MB / 0.8553 GB, free: 43.81 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/1.388, allocations: 470.7 kB / 0.8558 GB, free: 43.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006938/1.389, allocations: 43.73 kB / 0.8558 GB, free: 43.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002262/1.391, allocations: 182.8 kB / 0.856 GB, free: 43.12 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005154/1.392, allocations: 157 kB / 0.8561 GB, free: 42.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001812/1.392, allocations: 60 kB / 0.8562 GB, free: 42.91 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003077/1.395, allocations: 2.734 MB / 0.8589 GB, free: 40.18 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.51e-07/1.395, allocations: 4 kB / 0.8589 GB, free: 40.17 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005149/1.4, allocations: 1.328 MB / 0.8602 GB, free: 38.85 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02747/1.428, allocations: 14.95 MB / 0.8748 GB, free: 23.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01081/1.439, allocations: 8.122 MB / 0.8827 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/1.439, allocations: 0 / 0.8827 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003734/1.442, allocations: 3.166 MB / 0.8858 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003251/1.446, allocations: 0.5449 MB / 0.8863 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3698/1.815, allocations: 67.09 MB / 0.9519 GB, free: 218.3 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003842/1.819, allocations: 3.508 MB / 0.9553 GB, free: 217.5 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00442/1.824, allocations: 1.969 MB / 0.9572 GB, free: 217.4 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002699/1.826, allocations: 2.073 MB / 0.9592 GB, free: 217.4 MB / 0.6231 GB Notification: Performance of SimCode: time 1.202e-06/1.826, allocations: 0 / 0.9592 GB, free: 217.4 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1466/1.973, allocations: 105.4 MB / 1.062 GB, free: 128.6 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.64/26.62, allocations: 7.75 kB / 1.062 GB, free: 128.6 MB / 0.6231 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches