Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001837/0.001837, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001995/0.001995, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2044/0.2044, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 75.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4161/0.4182, allocations: 62.42 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.0128/0.4311, allocations: 12.03 MB / 0.5422 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009254/0.4404, allocations: 4.316 MB / 0.5464 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002093/0.4425, allocations: 76.69 kB / 0.5465 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004978/0.4475, allocations: 2.732 MB / 0.5492 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005701/0.4533, allocations: 2.035 MB / 0.5512 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0025/0.4558, allocations: 0.9124 MB / 0.5521 GB, free: 11.64 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008535/0.4643, allocations: 5.66 MB / 0.5576 GB, free: 5.965 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004738/0.4691, allocations: 3.358 MB / 0.5609 GB, free: 2.562 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003123/0.4723, allocations: 1.717 MB / 0.5626 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003605/0.4759, allocations: 2.516 MB / 0.565 GB, free: 14.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001269/0.4772, allocations: 388 kB / 0.5654 GB, free: 13.94 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003153/0.4804, allocations: 1.389 MB / 0.5667 GB, free: 12.55 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002681/0.4831, allocations: 2.198 MB / 0.5689 GB, free: 10.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0046/0.4877, allocations: 2.49 MB / 0.5713 GB, free: 7.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01127/0.499, allocations: 8.02 MB / 0.5791 GB, free: 15.79 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.499, allocations: 0 / 0.5791 GB, free: 15.79 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.499, allocations: 0 / 0.5791 GB, free: 15.79 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002944/0.4993, allocations: 0 / 0.5791 GB, free: 15.79 MB / 446.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.01506/0.5144, allocations: 5.81 MB / 0.5848 GB, free: 9.895 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.5145, allocations: 8.031 kB / 0.5848 GB, free: 9.887 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002258/0.5168, allocations: 0.8084 MB / 0.5856 GB, free: 9.066 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03347/0.5502, allocations: 5.989 MB / 0.5915 GB, free: 3.066 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009009/0.5593, allocations: 3.869 MB / 0.5952 GB, free: 15.14 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002434/0.5596, allocations: 238.3 kB / 0.5955 GB, free: 14.9 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001593/0.5612, allocations: 339.7 kB / 0.5958 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02133/0.5825, allocations: 10.78 MB / 0.6063 GB, free: 3.051 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002053/0.5828, allocations: 59.52 kB / 0.6064 GB, free: 2.992 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009255/0.5837, allocations: 151.9 kB / 0.6065 GB, free: 2.844 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002966/0.5867, allocations: 2.002 MB / 0.6085 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01806/0.6048, allocations: 9.241 MB / 0.6175 GB, free: 7.578 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0526/0.6574, allocations: 40.89 MB / 0.6574 GB, free: 13.47 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01046/0.6679, allocations: 4.237 MB / 0.6616 GB, free: 9.09 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002709/0.6707, allocations: 1.888 MB / 0.6634 GB, free: 7.191 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01156/0.6823, allocations: 7.503 MB / 0.6707 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.462e-05/0.6824, allocations: 55.5 kB / 0.6708 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=180): time 4.539e-06/0.6824, allocations: 0 / 0.6708 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=236): time 0.1536/0.8359, allocations: 40.88 MB / 0.7107 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.8361, allocations: 205.9 kB / 0.7109 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008098/0.8442, allocations: 4.329 MB / 0.7151 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006054/0.8449, allocations: 61.7 kB / 0.7152 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.2629/1.108, allocations: 3.334 MB / 0.7185 GB, free: 165.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001344/1.109, allocations: 0.918 MB / 0.7194 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002469/1.112, allocations: 1.295 MB / 0.7206 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.927e-05/1.112, allocations: 307.2 kB / 0.7209 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004666/1.116, allocations: 3.49 MB / 0.7243 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006365/1.123, allocations: 7.111 MB / 0.7313 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01165/1.134, allocations: 11.36 MB / 0.7424 GB, free: 149 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000162/1.135, allocations: 41.94 kB / 0.7424 GB, free: 149 MB / 0.5606 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03205/1.167, allocations: 15.71 MB / 0.7577 GB, free: 138.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.55e-05/1.167, allocations: 60 kB / 0.7578 GB, free: 138.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001214/1.167, allocations: 131.9 kB / 0.7579 GB, free: 138 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01969/1.187, allocations: 6.063 MB / 0.7638 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004663/1.191, allocations: 1.431 MB / 0.7652 GB, free: 130.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02807/1.219, allocations: 27.15 MB / 0.7917 GB, free: 103.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005525/1.225, allocations: 402.1 kB / 0.7921 GB, free: 102.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00105/1.226, allocations: 380 kB / 0.7925 GB, free: 102.3 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.003576/1.23, allocations: 2.212 MB / 0.7947 GB, free: 100.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008851/1.231, allocations: 424.7 kB / 0.7951 GB, free: 99.75 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02374/1.254, allocations: 11.05 MB / 0.8059 GB, free: 88.66 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.703e-05/1.254, allocations: 27.94 kB / 0.8059 GB, free: 88.63 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.985e-05/1.254, allocations: 17.42 kB / 0.8059 GB, free: 88.62 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.45e-05/1.254, allocations: 7.969 kB / 0.8059 GB, free: 88.61 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03732/1.292, allocations: 20.48 MB / 0.8259 GB, free: 67.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.698e-05/1.292, allocations: 4.594 kB / 0.8259 GB, free: 67.71 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001973/1.294, allocations: 383.4 kB / 0.8263 GB, free: 67.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0176/1.311, allocations: 5.144 MB / 0.8313 GB, free: 62.18 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007288/1.312, allocations: 46.34 kB / 0.8313 GB, free: 62.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02357/1.336, allocations: 22.25 MB / 0.8531 GB, free: 39.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.336, allocations: 8 kB / 0.8531 GB, free: 39.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02701/1.363, allocations: 14.32 MB / 0.8671 GB, free: 25.19 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/1.365, allocations: 470.4 kB / 0.8675 GB, free: 24.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008282/1.366, allocations: 51.92 kB / 0.8676 GB, free: 24.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002138/1.368, allocations: 179.3 kB / 0.8677 GB, free: 24.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000685/1.368, allocations: 149 kB / 0.8679 GB, free: 24.35 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002003/1.369, allocations: 71.94 kB / 0.8679 GB, free: 24.28 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003322/1.372, allocations: 2.726 MB / 0.8706 GB, free: 21.55 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.372, allocations: 0 / 0.8706 GB, free: 21.55 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006336/1.378, allocations: 1.315 MB / 0.8719 GB, free: 20.24 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.02687/1.405, allocations: 14.96 MB / 0.8865 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01122/1.416, allocations: 8.123 MB / 0.8944 GB, free: 13.08 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.417, allocations: 0 / 0.8944 GB, free: 13.08 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004962/1.421, allocations: 3.17 MB / 0.8975 GB, free: 9.898 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004237/1.426, allocations: 0.5412 MB / 0.8981 GB, free: 9.371 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4354/1.861, allocations: 67.05 MB / 0.9635 GB, free: 214.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004393/1.866, allocations: 3.516 MB / 0.967 GB, free: 213 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.004498/1.87, allocations: 1.959 MB / 0.9689 GB, free: 212.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002514/1.873, allocations: 2.069 MB / 0.9709 GB, free: 210.4 MB / 0.6231 GB Notification: Performance of SimCode: time 8.21e-07/1.873, allocations: 0 / 0.9709 GB, free: 210.4 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1417/2.014, allocations: 105.3 MB / 1.074 GB, free: 108.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.22/26.23, allocations: 7.578 kB / 1.074 GB, free: 108.7 MB / 0.6231 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches