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.001104/0.001104, allocations: 110.4 kB / 17.78 MB, free: 5.285 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.00232/0.00232, allocations: 183.9 kB / 18.7 MB, free: 4.367 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.427/1.427, 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.2201/0.2201, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 63.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3677/0.3693, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01316/0.3825, allocations: 12.05 MB / 0.5302 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01232/0.3948, allocations: 4.305 MB / 0.5344 GB, free: 7.492 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002904/0.3978, allocations: 77.75 kB / 0.5344 GB, free: 7.477 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005297/0.4031, allocations: 2.733 MB / 0.5371 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006255/0.4094, allocations: 2.004 MB / 0.5391 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0022/0.4116, allocations: 0.9162 MB / 0.54 GB, free: 3.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008282/0.4199, allocations: 5.585 MB / 0.5454 GB, free: 412 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004235/0.4242, allocations: 3.358 MB / 0.5487 GB, free: 12.99 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003373/0.4276, allocations: 1.721 MB / 0.5504 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003522/0.4311, allocations: 2.528 MB / 0.5529 GB, free: 8.73 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001228/0.4323, allocations: 384 kB / 0.5532 GB, free: 8.355 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003052/0.4354, allocations: 1.412 MB / 0.5546 GB, free: 6.941 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002479/0.4379, allocations: 2.217 MB / 0.5568 GB, free: 4.719 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004228/0.4421, allocations: 2.501 MB / 0.5592 GB, free: 2.203 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01023/0.4524, allocations: 8.047 MB / 0.5671 GB, free: 10.13 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.4524, allocations: 0 / 0.5671 GB, free: 10.13 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4524, allocations: 0 / 0.5671 GB, free: 10.13 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002207/0.4527, allocations: 0 / 0.5671 GB, free: 10.13 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.0157/0.4684, allocations: 5.692 MB / 0.5726 GB, free: 4.359 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.4684, allocations: 12.03 kB / 0.5726 GB, free: 4.348 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001346/0.4698, allocations: 0.7929 MB / 0.5734 GB, free: 3.543 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0382/0.508, allocations: 5.962 MB / 0.5792 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.5182, allocations: 4.059 MB / 0.5832 GB, free: 9.449 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/0.5185, allocations: 250.3 kB / 0.5834 GB, free: 9.203 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001123/0.5196, allocations: 331.6 kB / 0.5838 GB, free: 8.879 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01994/0.5396, allocations: 10.79 MB / 0.5943 GB, free: 13.35 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/0.5397, allocations: 51.5 kB / 0.5943 GB, free: 13.3 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003851/0.5401, allocations: 151.9 kB / 0.5945 GB, free: 13.15 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002936/0.5431, allocations: 2.002 MB / 0.5964 GB, free: 11.14 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01826/0.5614, allocations: 9.241 MB / 0.6055 GB, free: 1.887 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0522/0.6136, allocations: 40.83 MB / 0.6453 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01142/0.625, allocations: 4.219 MB / 0.6494 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002821/0.6279, allocations: 1.889 MB / 0.6513 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01264/0.6406, allocations: 7.497 MB / 0.6586 GB, free: 9.695 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.785e-05/0.6406, allocations: 59.5 kB / 0.6587 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 4.348e-06/0.6407, allocations: 0 / 0.6587 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1678/0.8084, allocations: 40.64 MB / 0.6984 GB, free: 0.8828 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.8086, allocations: 209.9 kB / 0.6986 GB, free: 0.6367 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00886/0.8175, allocations: 4.329 MB / 0.7028 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006209/0.8181, allocations: 65.61 kB / 0.7028 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002607/0.8207, allocations: 3.215 MB / 0.706 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001392/0.8221, allocations: 0.8752 MB / 0.7068 GB, free: 8.062 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003444/0.8256, allocations: 1.285 MB / 0.7081 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.891e-05/0.8257, allocations: 309.1 kB / 0.7084 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005109/0.8308, allocations: 3.495 MB / 0.7118 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2856/1.116, allocations: 7.101 MB / 0.7187 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01354/1.13, allocations: 11.37 MB / 0.7298 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001912/1.13, allocations: 36.16 kB / 0.7299 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03986/1.17, allocations: 15.69 MB / 0.7452 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/1.17, allocations: 60.81 kB / 0.7453 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001345/1.17, allocations: 127.9 kB / 0.7454 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02271/1.193, allocations: 6.062 MB / 0.7513 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005018/1.198, allocations: 1.433 MB / 0.7527 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02906/1.227, allocations: 27.14 MB / 0.7792 GB, free: 122.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006204/1.234, allocations: 399.5 kB / 0.7796 GB, free: 122 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001205/1.235, allocations: 382.8 kB / 0.7799 GB, free: 121.7 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.003811/1.239, allocations: 2.219 MB / 0.7821 GB, free: 119.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008492/1.239, allocations: 397.9 kB / 0.7825 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02646/1.266, allocations: 11.05 MB / 0.7933 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.285e-05/1.266, allocations: 24 kB / 0.7933 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.797e-05/1.266, allocations: 12 kB / 0.7933 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.025e-05/1.266, allocations: 14.25 kB / 0.7933 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03941/1.305, allocations: 20.47 MB / 0.8133 GB, free: 87.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.893e-05/1.306, allocations: 7.5 kB / 0.8133 GB, free: 87.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001958/1.308, allocations: 396 kB / 0.8137 GB, free: 86.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01933/1.327, allocations: 5.137 MB / 0.8187 GB, free: 81.81 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004364/1.327, allocations: 47.98 kB / 0.8188 GB, free: 81.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02383/1.351, allocations: 22.23 MB / 0.8405 GB, free: 59.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.822e-06/1.351, allocations: 11.77 kB / 0.8405 GB, free: 59.34 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02876/1.38, allocations: 14.31 MB / 0.8545 GB, free: 44.93 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/1.381, allocations: 447.8 kB / 0.8549 GB, free: 44.47 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006624/1.382, allocations: 40.06 kB / 0.8549 GB, free: 44.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002272/1.384, allocations: 187.1 kB / 0.8551 GB, free: 44.25 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000625/1.385, allocations: 148.9 kB / 0.8553 GB, free: 44.11 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001975/1.385, allocations: 67.98 kB / 0.8553 GB, free: 44.04 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003562/1.389, allocations: 2.734 MB / 0.858 GB, free: 41.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.389, allocations: 0 / 0.858 GB, free: 41.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00591/1.395, allocations: 1.331 MB / 0.8593 GB, free: 39.97 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.02844/1.423, allocations: 14.93 MB / 0.8739 GB, free: 24.95 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01013/1.433, allocations: 8.11 MB / 0.8818 GB, free: 16.86 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/1.433, allocations: 0 / 0.8818 GB, free: 16.86 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003682/1.437, allocations: 3.174 MB / 0.8849 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003505/1.44, allocations: 0.5401 MB / 0.8854 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3869/1.827, allocations: 66.91 MB / 0.9508 GB, free: 218 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003714/1.831, allocations: 3.509 MB / 0.9542 GB, free: 217.2 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.004687/1.836, allocations: 1.962 MB / 0.9561 GB, free: 217.1 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002963/1.839, allocations: 2.075 MB / 0.9581 GB, free: 217.1 MB / 0.6231 GB Notification: Performance of SimCode: time 2.665e-06/1.839, allocations: 0 / 0.9581 GB, free: 217.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1427/1.981, allocations: 107.4 MB / 1.063 GB, free: 128.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.8/27.78, allocations: 11.75 kB / 1.063 GB, free: 128.1 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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