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.001123/0.001123, allocations: 117.2 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 203.8 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2072/0.2072, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 71.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3424, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01261/0.355, allocations: 12.03 MB / 0.5422 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009932/0.365, allocations: 4.308 MB / 0.5465 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003391/0.3684, allocations: 76.56 kB / 0.5465 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005654/0.3741, allocations: 2.735 MB / 0.5492 GB, free: 14.6 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005971/0.3802, allocations: 2.034 MB / 0.5512 GB, free: 12.56 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00215/0.3823, allocations: 0.9008 MB / 0.5521 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008271/0.3906, allocations: 5.675 MB / 0.5576 GB, free: 5.969 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005013/0.3957, allocations: 3.357 MB / 0.5609 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003392/0.3991, allocations: 1.709 MB / 0.5626 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003752/0.4029, allocations: 2.52 MB / 0.565 GB, free: 14.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001256/0.4041, allocations: 384 kB / 0.5654 GB, free: 13.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003159/0.4073, allocations: 1.397 MB / 0.5667 GB, free: 12.55 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002882/0.4102, allocations: 2.198 MB / 0.5689 GB, free: 10.35 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00458/0.4148, allocations: 2.494 MB / 0.5713 GB, free: 7.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.425, allocations: 8.013 MB / 0.5792 GB, free: 15.8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.4251, allocations: 0 / 0.5792 GB, free: 15.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4251, allocations: 3.938 kB / 0.5792 GB, free: 15.79 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002834/0.4254, allocations: 0 / 0.5792 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.01469/0.4401, allocations: 5.81 MB / 0.5848 GB, free: 9.898 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.4402, allocations: 8.031 kB / 0.5848 GB, free: 9.891 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002288/0.4424, allocations: 0.8045 MB / 0.5856 GB, free: 9.074 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03804/0.4805, allocations: 5.989 MB / 0.5915 GB, free: 3.074 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008484/0.489, allocations: 3.865 MB / 0.5952 GB, free: 15.15 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.4892, allocations: 246.2 kB / 0.5955 GB, free: 14.91 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009912/0.4902, allocations: 335.8 kB / 0.5958 GB, free: 14.58 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01809/0.5083, allocations: 10.78 MB / 0.6063 GB, free: 3.055 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001404/0.5085, allocations: 59.52 kB / 0.6064 GB, free: 2.996 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004354/0.509, allocations: 155.8 kB / 0.6065 GB, free: 2.844 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003068/0.512, allocations: 2.002 MB / 0.6085 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0177/0.5298, allocations: 9.233 MB / 0.6175 GB, free: 7.586 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05365/0.5835, allocations: 40.89 MB / 0.6574 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01153/0.595, allocations: 4.231 MB / 0.6616 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002949/0.598, allocations: 1.891 MB / 0.6634 GB, free: 7.203 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01466/0.6127, allocations: 7.495 MB / 0.6707 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.556e-05/0.6128, allocations: 55.5 kB / 0.6708 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=180): time 4.919e-06/0.6128, allocations: 4 kB / 0.6708 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of matching and sorting (n=236): time 0.17/0.7829, allocations: 40.88 MB / 0.7107 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.783, allocations: 213.9 kB / 0.7109 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007471/0.7905, allocations: 4.326 MB / 0.7151 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006035/0.7912, allocations: 65.64 kB / 0.7152 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.2584/1.05, allocations: 3.333 MB / 0.7185 GB, free: 165.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00172/1.051, allocations: 0.9188 MB / 0.7194 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003157/1.054, allocations: 1.291 MB / 0.7206 GB, free: 165 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.458e-05/1.055, allocations: 308.9 kB / 0.7209 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00557/1.06, allocations: 3.488 MB / 0.7243 GB, free: 163.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007273/1.067, allocations: 7.106 MB / 0.7313 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/1.078, allocations: 11.37 MB / 0.7424 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001187/1.079, allocations: 38.53 kB / 0.7424 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.0341/1.113, allocations: 15.72 MB / 0.7577 GB, free: 138.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001241/1.113, allocations: 60 kB / 0.7578 GB, free: 138 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/1.113, allocations: 128 kB / 0.7579 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02207/1.135, allocations: 6.061 MB / 0.7638 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004659/1.14, allocations: 1.427 MB / 0.7652 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02951/1.169, allocations: 27.15 MB / 0.7918 GB, free: 103 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005953/1.175, allocations: 404.2 kB / 0.7921 GB, free: 102.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/1.176, allocations: 376 kB / 0.7925 GB, free: 102.2 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.004513/1.181, allocations: 2.216 MB / 0.7947 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001064/1.182, allocations: 421.2 kB / 0.7951 GB, free: 99.68 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0278/1.21, allocations: 11.05 MB / 0.8059 GB, free: 88.59 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.579e-05/1.21, allocations: 27.61 kB / 0.8059 GB, free: 88.56 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.036e-05/1.21, allocations: 11.94 kB / 0.8059 GB, free: 88.55 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.439e-05/1.21, allocations: 13.28 kB / 0.8059 GB, free: 88.54 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04637/1.256, allocations: 20.47 MB / 0.8259 GB, free: 67.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-05/1.257, allocations: 11.92 kB / 0.8259 GB, free: 67.64 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002057/1.259, allocations: 379.4 kB / 0.8263 GB, free: 67.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01965/1.278, allocations: 5.145 MB / 0.8313 GB, free: 62.11 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006039/1.279, allocations: 44 kB / 0.8313 GB, free: 62.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02553/1.304, allocations: 22.26 MB / 0.8531 GB, free: 39.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/1.305, allocations: 8 kB / 0.8531 GB, free: 39.53 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03105/1.336, allocations: 14.32 MB / 0.8671 GB, free: 25.11 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/1.337, allocations: 466.7 kB / 0.8675 GB, free: 24.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001303/1.338, allocations: 51.92 kB / 0.8676 GB, free: 24.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003239/1.342, allocations: 173.1 kB / 0.8677 GB, free: 24.43 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008163/1.342, allocations: 153 kB / 0.8679 GB, free: 24.28 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003729/1.343, allocations: 68.12 kB / 0.8679 GB, free: 24.21 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004616/1.347, allocations: 2.73 MB / 0.8706 GB, free: 21.48 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2e-07/1.348, allocations: 3.938 kB / 0.8706 GB, free: 21.47 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007115/1.355, allocations: 1.315 MB / 0.8719 GB, free: 20.16 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.03036/1.385, allocations: 14.96 MB / 0.8865 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01231/1.397, allocations: 8.121 MB / 0.8944 GB, free: 13.01 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.254e-05/1.397, allocations: 3.938 kB / 0.8944 GB, free: 13.01 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005229/1.403, allocations: 3.169 MB / 0.8975 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004675/1.407, allocations: 0.5348 MB / 0.8981 GB, free: 9.297 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4207/1.828, allocations: 67.06 MB / 0.9635 GB, free: 214.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00362/1.832, allocations: 3.505 MB / 0.967 GB, free: 212.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.004041/1.836, allocations: 1.961 MB / 0.9689 GB, free: 212.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00295/1.839, allocations: 2.076 MB / 0.9709 GB, free: 210.3 MB / 0.6231 GB Notification: Performance of SimCode: time 8.11e-07/1.839, allocations: 0 / 0.9709 GB, free: 210.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1554/1.994, allocations: 105.3 MB / 1.074 GB, free: 108.6 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.5/26.49, allocations: 16 kB / 1.074 GB, free: 108.6 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