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.00164/0.00164, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001666/0.001666, allocations: 200.6 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.422/1.422, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2371/0.2371, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002269/0.002269, allocations: 79.84 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.385/0.3872, allocations: 62.44 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01435/0.4016, allocations: 12.02 MB / 0.5423 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.4118, allocations: 4.309 MB / 0.5465 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003148/0.415, allocations: 80.62 kB / 0.5466 GB, free: 0.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006056/0.4211, allocations: 2.728 MB / 0.5493 GB, free: 14.5 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006728/0.4279, allocations: 1.98 MB / 0.5512 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002568/0.4305, allocations: 0.9046 MB / 0.5521 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0101/0.4407, allocations: 5.668 MB / 0.5576 GB, free: 5.926 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006581/0.4473, allocations: 3.369 MB / 0.5609 GB, free: 2.512 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004056/0.4514, allocations: 1.709 MB / 0.5626 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004362/0.4558, allocations: 2.512 MB / 0.565 GB, free: 14.28 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001618/0.4574, allocations: 384 kB / 0.5654 GB, free: 13.9 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004/0.4615, allocations: 1.393 MB / 0.5668 GB, free: 12.51 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003281/0.4648, allocations: 2.17 MB / 0.5689 GB, free: 10.33 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004904/0.4697, allocations: 2.482 MB / 0.5713 GB, free: 7.836 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01231/0.482, allocations: 8.025 MB / 0.5791 GB, free: 15.78 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4821, allocations: 0 / 0.5791 GB, free: 15.78 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4821, allocations: 0 / 0.5791 GB, free: 15.78 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002371/0.4823, allocations: 0 / 0.5791 GB, free: 15.78 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.01552/0.4978, allocations: 5.806 MB / 0.5848 GB, free: 9.891 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.4979, allocations: 12.03 kB / 0.5848 GB, free: 9.879 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002169/0.5001, allocations: 0.7967 MB / 0.5856 GB, free: 9.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04092/0.541, allocations: 5.989 MB / 0.5914 GB, free: 3.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01027/0.5513, allocations: 3.861 MB / 0.5952 GB, free: 15.15 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002848/0.5516, allocations: 250.3 kB / 0.5955 GB, free: 14.9 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00156/0.5532, allocations: 331.8 kB / 0.5958 GB, free: 14.58 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02302/0.5763, allocations: 10.79 MB / 0.6063 GB, free: 3.047 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002453/0.5765, allocations: 47.59 kB / 0.6063 GB, free: 3 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001217/0.5778, allocations: 163.8 kB / 0.6065 GB, free: 2.84 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003629/0.5814, allocations: 1.994 MB / 0.6085 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02019/0.6016, allocations: 9.237 MB / 0.6175 GB, free: 7.582 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05709/0.6588, allocations: 40.89 MB / 0.6574 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01153/0.6703, allocations: 4.236 MB / 0.6615 GB, free: 9.102 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003023/0.6734, allocations: 1.891 MB / 0.6634 GB, free: 7.203 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01264/0.6861, allocations: 7.506 MB / 0.6707 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.564e-05/0.6861, allocations: 55.5 kB / 0.6708 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=180): time 4.839e-06/0.6862, allocations: 0 / 0.6708 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of matching and sorting (n=236): time 0.1743/0.8605, allocations: 40.88 MB / 0.7107 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001713/0.8607, allocations: 205.9 kB / 0.7109 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008726/0.8694, allocations: 4.337 MB / 0.7151 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005902/0.8701, allocations: 57.7 kB / 0.7152 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.3176/1.188, allocations: 3.335 MB / 0.7184 GB, free: 165.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001228/1.189, allocations: 0.9141 MB / 0.7193 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002465/1.191, allocations: 1.296 MB / 0.7206 GB, free: 165 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.436e-05/1.191, allocations: 304.1 kB / 0.7209 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004484/1.196, allocations: 3.49 MB / 0.7243 GB, free: 163.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006738/1.203, allocations: 7.111 MB / 0.7312 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01191/1.215, allocations: 11.36 MB / 0.7423 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001768/1.215, allocations: 35.56 kB / 0.7424 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03709/1.252, allocations: 15.72 MB / 0.7577 GB, free: 138 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/1.252, allocations: 60 kB / 0.7578 GB, free: 138 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/1.252, allocations: 125.3 kB / 0.7579 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02149/1.274, allocations: 6.064 MB / 0.7638 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004866/1.279, allocations: 1.427 MB / 0.7652 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02841/1.307, allocations: 27.15 MB / 0.7917 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005612/1.313, allocations: 402.1 kB / 0.7921 GB, free: 102.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001204/1.314, allocations: 372 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.003791/1.318, allocations: 2.225 MB / 0.7946 GB, free: 100 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008785/1.319, allocations: 417.2 kB / 0.795 GB, free: 99.63 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02608/1.345, allocations: 11.06 MB / 0.8058 GB, free: 88.54 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-05/1.345, allocations: 27.94 kB / 0.8059 GB, free: 88.52 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-05/1.345, allocations: 14.38 kB / 0.8059 GB, free: 88.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-05/1.345, allocations: 11.95 kB / 0.8059 GB, free: 88.49 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03957/1.385, allocations: 20.47 MB / 0.8259 GB, free: 67.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.2e-05/1.385, allocations: 8 kB / 0.8259 GB, free: 67.59 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002338/1.387, allocations: 385.5 kB / 0.8263 GB, free: 67.22 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0201/1.407, allocations: 5.145 MB / 0.8313 GB, free: 62.06 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006747/1.408, allocations: 47.98 kB / 0.8313 GB, free: 62.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02386/1.432, allocations: 22.26 MB / 0.8531 GB, free: 39.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/1.432, allocations: 4 kB / 0.8531 GB, free: 39.48 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02799/1.46, allocations: 14.31 MB / 0.867 GB, free: 25.07 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/1.461, allocations: 470.1 kB / 0.8675 GB, free: 24.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008273/1.462, allocations: 47.94 kB / 0.8675 GB, free: 24.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002441/1.464, allocations: 179.8 kB / 0.8677 GB, free: 24.38 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007382/1.465, allocations: 149 kB / 0.8679 GB, free: 24.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002086/1.465, allocations: 67.98 kB / 0.8679 GB, free: 24.16 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00416/1.469, allocations: 2.726 MB / 0.8706 GB, free: 21.43 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.469, allocations: 7.938 kB / 0.8706 GB, free: 21.43 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008426/1.478, allocations: 1.311 MB / 0.8719 GB, free: 20.12 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.02887/1.507, allocations: 14.96 MB / 0.8865 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01328/1.52, allocations: 8.109 MB / 0.8944 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.52, allocations: 4 kB / 0.8944 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005439/1.526, allocations: 3.187 MB / 0.8975 GB, free: 9.777 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003562/1.529, allocations: 0.5265 MB / 0.898 GB, free: 9.258 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4301/1.959, allocations: 67.06 MB / 0.9635 GB, free: 214.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003223/1.963, allocations: 3.508 MB / 0.9669 GB, free: 213 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.003733/1.966, allocations: 1.962 MB / 0.9689 GB, free: 212.3 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002374/1.969, allocations: 2.069 MB / 0.9709 GB, free: 210.5 MB / 0.6231 GB Notification: Performance of SimCode: time 1.413e-06/1.969, allocations: 0 / 0.9709 GB, free: 210.5 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1456/2.114, allocations: 105.3 MB / 1.074 GB, free: 108.6 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.63/27.75, allocations: 11.45 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