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.001169/0.001169, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001317/0.001317, allocations: 192 kB / 18.55 MB, free: 4.566 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.395/1.395, allocations: 222.9 MB / 242.3 MB, free: 15.19 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.2146/0.2146, allocations: 44.18 MB / 336.6 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 64.14 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1144, allocations: 60.82 MB / 469.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01408/0.1286, allocations: 12.04 MB / 481.4 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.1398, allocations: 4.302 MB / 485.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003459/0.1433, allocations: 79.75 kB / 485.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006079/0.1494, allocations: 2.741 MB / 488.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006702/0.1562, allocations: 2.015 MB / 490.5 MB, free: 9.027 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002323/0.1586, allocations: 0.9008 MB / 491.4 MB, free: 8.125 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007522/0.1661, allocations: 5.591 MB / 497 MB, free: 2.523 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004739/0.1709, allocations: 3.354 MB / 0.4887 GB, free: 15.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00313/0.1741, allocations: 1.717 MB / 0.4903 GB, free: 13.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003648/0.1777, allocations: 2.512 MB / 0.4928 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001254/0.179, allocations: 384 kB / 0.4931 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003315/0.1824, allocations: 1.412 MB / 0.4945 GB, free: 9.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002753/0.1851, allocations: 2.182 MB / 0.4967 GB, free: 6.902 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004357/0.1895, allocations: 2.513 MB / 0.4991 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2252/0.4147, allocations: 7.789 MB / 0.5067 GB, free: 23.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.4147, allocations: 1.219 kB / 0.5067 GB, free: 23.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4147, allocations: 3.828 kB / 0.5067 GB, free: 23.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003123/0.4151, allocations: 0 / 0.5067 GB, free: 23.62 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.02272/0.4378, allocations: 5.686 MB / 0.5123 GB, free: 21.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.4379, allocations: 9.844 kB / 0.5123 GB, free: 21.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002235/0.4401, allocations: 0.8125 MB / 0.5131 GB, free: 21.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03821/0.4783, allocations: 5.959 MB / 0.5189 GB, free: 21.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009385/0.4878, allocations: 3.999 MB / 0.5228 GB, free: 20.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002839/0.4881, allocations: 241 kB / 0.523 GB, free: 20.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002257/0.4904, allocations: 334.9 kB / 0.5234 GB, free: 20.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02091/0.5113, allocations: 10.78 MB / 0.5339 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000146/0.5115, allocations: 55.81 kB / 0.5339 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005334/0.512, allocations: 156.9 kB / 0.5341 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002732/0.5147, allocations: 1.998 MB / 0.536 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01673/0.5315, allocations: 9.242 MB / 0.5451 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05355/0.5851, allocations: 40.99 MB / 0.5851 GB, free: 11.74 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01072/0.5958, allocations: 4.223 MB / 0.5892 GB, free: 7.375 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002627/0.5985, allocations: 1.891 MB / 0.5911 GB, free: 5.48 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01053/0.609, allocations: 7.511 MB / 0.5984 GB, free: 13.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.361e-05/0.6091, allocations: 55.56 kB / 0.5984 GB, free: 13.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=180): time 4.779e-06/0.6091, allocations: 0 / 0.5984 GB, free: 13.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=236): time 0.1667/0.7759, allocations: 40.63 MB / 0.6381 GB, free: 5.055 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/0.7761, allocations: 208.7 kB / 0.6383 GB, free: 4.812 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007938/0.784, allocations: 4.325 MB / 0.6425 GB, free: 480 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006934/0.7847, allocations: 64.59 kB / 0.6426 GB, free: 412 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002924/0.7877, allocations: 3.228 MB / 0.6458 GB, free: 13.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001507/0.7892, allocations: 0.8731 MB / 0.6466 GB, free: 12.38 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00229/0.7915, allocations: 1.288 MB / 0.6479 GB, free: 11.08 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.733e-05/0.7916, allocations: 305.1 kB / 0.6482 GB, free: 10.78 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004773/0.7964, allocations: 3.487 MB / 0.6516 GB, free: 7.289 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006752/0.8032, allocations: 7.112 MB / 0.6585 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01313/0.8163, allocations: 11.38 MB / 0.6696 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.241e-05/0.8164, allocations: 36 kB / 0.6697 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.04027/0.8567, allocations: 15.68 MB / 0.685 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.942e-05/0.8568, allocations: 59.94 kB / 0.685 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001384/0.857, allocations: 128.9 kB / 0.6852 GB, free: 2.199 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0244/0.8814, allocations: 6.066 MB / 0.6911 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005381/0.8868, allocations: 1.44 MB / 0.6925 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2386/1.126, allocations: 27.14 MB / 0.719 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009822/1.135, allocations: 404.8 kB / 0.7194 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002098/1.138, allocations: 374.4 kB / 0.7197 GB, free: 179.5 MB / 0.5294 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.006143/1.144, allocations: 2.211 MB / 0.7219 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00146/1.145, allocations: 396.6 kB / 0.7223 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03699/1.182, allocations: 11.06 MB / 0.7331 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.384e-05/1.182, allocations: 29.03 kB / 0.7331 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.611e-05/1.182, allocations: 11.19 kB / 0.7331 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.443e-05/1.182, allocations: 7.969 kB / 0.7331 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04434/1.227, allocations: 20.53 MB / 0.7532 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.919e-05/1.227, allocations: 4 kB / 0.7532 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002035/1.229, allocations: 389.3 kB / 0.7535 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0195/1.248, allocations: 5.15 MB / 0.7586 GB, free: 152 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005283/1.249, allocations: 44 kB / 0.7586 GB, free: 152 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02407/1.273, allocations: 22.23 MB / 0.7803 GB, free: 129.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/1.273, allocations: 14.16 kB / 0.7803 GB, free: 129.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02899/1.302, allocations: 14.3 MB / 0.7943 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001222/1.303, allocations: 448.4 kB / 0.7947 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001257/1.305, allocations: 52.27 kB / 0.7948 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002936/1.308, allocations: 175.7 kB / 0.795 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007944/1.308, allocations: 166.7 kB / 0.7951 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002099/1.309, allocations: 64.95 kB / 0.7952 GB, free: 114.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003568/1.312, allocations: 2.731 MB / 0.7978 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.61e-07/1.312, allocations: 0 / 0.7978 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006965/1.319, allocations: 1.33 MB / 0.7991 GB, free: 110.5 MB / 0.5294 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.03081/1.35, allocations: 14.94 MB / 0.8137 GB, free: 95.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01363/1.364, allocations: 9.487 MB / 0.823 GB, free: 86.07 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/1.364, allocations: 0 / 0.823 GB, free: 86.07 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004183/1.368, allocations: 3.174 MB / 0.8261 GB, free: 82.88 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003983/1.372, allocations: 0.5446 MB / 0.8266 GB, free: 82.36 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3052/1.677, allocations: 74.69 MB / 0.8996 GB, free: 180.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00466/1.682, allocations: 3.512 MB / 0.903 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006228/1.688, allocations: 1.964 MB / 0.9049 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003295/1.691, allocations: 2.078 MB / 0.9069 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.513e-06/1.691, allocations: 0 / 0.9069 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1435/1.835, allocations: 109.2 MB / 1.014 GB, free: 89.16 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/13.58, allocations: 4.062 kB / 1.014 GB, free: 89.16 MB / 0.5294 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