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.001236/0.001236, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2121/0.2121, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 80.89 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1296, allocations: 62.44 MB / 480.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01385/0.1435, allocations: 12.02 MB / 492.1 MB, free: 9.098 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009526/0.1531, allocations: 4.309 MB / 496.5 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002249/0.1554, allocations: 79.81 kB / 496.5 MB, free: 4.699 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005549/0.161, allocations: 2.721 MB / 499.3 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006776/0.1678, allocations: 1.984 MB / 0.4895 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002627/0.1705, allocations: 0.8969 MB / 0.4904 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0086/0.1791, allocations: 5.669 MB / 0.4959 GB, free: 9.398 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006329/0.1855, allocations: 3.358 MB / 0.4992 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003667/0.1891, allocations: 1.709 MB / 0.5009 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003699/0.1929, allocations: 2.52 MB / 0.5033 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001388/0.1943, allocations: 387.9 kB / 0.5037 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2133/0.4076, allocations: 1.385 MB / 0.505 GB, free: 18.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003568/0.4112, allocations: 2.16 MB / 0.5071 GB, free: 18.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005821/0.4171, allocations: 2.489 MB / 0.5096 GB, free: 17.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01416/0.4313, allocations: 7.743 MB / 0.5171 GB, free: 16.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.062e-05/0.4313, allocations: 1.156 kB / 0.5171 GB, free: 16.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4313, allocations: 3.938 kB / 0.5171 GB, free: 16.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000321/0.4317, allocations: 0 / 0.5171 GB, free: 16.54 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.02129/0.453, allocations: 5.663 MB / 0.5227 GB, free: 14.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.102e-05/0.4531, allocations: 10.12 kB / 0.5227 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004075/0.4572, allocations: 0.7974 MB / 0.5235 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0399/0.4971, allocations: 5.958 MB / 0.5293 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01071/0.5079, allocations: 3.791 MB / 0.533 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002202/0.5081, allocations: 242.3 kB / 0.5332 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001994/0.5101, allocations: 334.1 kB / 0.5335 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02304/0.5332, allocations: 10.79 MB / 0.5441 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002326/0.5335, allocations: 45.84 kB / 0.5441 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001004/0.5345, allocations: 160.4 kB / 0.5443 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004745/0.5392, allocations: 2 MB / 0.5462 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02156/0.5609, allocations: 9.235 MB / 0.5552 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06367/0.6246, allocations: 40.99 MB / 0.5953 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01207/0.6367, allocations: 4.224 MB / 0.5994 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003217/0.6399, allocations: 1.886 MB / 0.6012 GB, free: 8.949 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01502/0.655, allocations: 7.506 MB / 0.6086 GB, free: 1.117 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.192e-05/0.6551, allocations: 59.03 kB / 0.6086 GB, free: 1.051 MB / 446.1 MB Notification: Performance of pre-optimization done (n=180): time 5.45e-06/0.6551, allocations: 2.625 kB / 0.6086 GB, free: 1.051 MB / 446.1 MB Notification: Performance of matching and sorting (n=236): time 0.1768/0.832, allocations: 40.64 MB / 0.6483 GB, free: 8.504 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.8321, allocations: 201.9 kB / 0.6485 GB, free: 8.266 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008382/0.8405, allocations: 4.324 MB / 0.6527 GB, free: 3.918 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006458/0.8412, allocations: 57.7 kB / 0.6528 GB, free: 3.855 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002506/0.8437, allocations: 3.215 MB / 0.6559 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00138/0.8451, allocations: 0.8747 MB / 0.6568 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003023/0.8482, allocations: 1.281 MB / 0.658 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.883e-05/0.8483, allocations: 305.1 kB / 0.6583 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005681/0.854, allocations: 3.495 MB / 0.6617 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00851/0.8625, allocations: 7.107 MB / 0.6687 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01428/0.8768, allocations: 11.37 MB / 0.6798 GB, free: 5.207 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001607/0.877, allocations: 36 kB / 0.6798 GB, free: 5.172 MB / 0.5137 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.04577/0.9228, allocations: 15.69 MB / 0.6951 GB, free: 5.73 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.923, allocations: 63.94 kB / 0.6952 GB, free: 5.668 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002064/0.9232, allocations: 128.8 kB / 0.6953 GB, free: 5.543 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2351/1.158, allocations: 6.064 MB / 0.7012 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005929/1.164, allocations: 1.432 MB / 0.7026 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0339/1.198, allocations: 27.15 MB / 0.7291 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005777/1.204, allocations: 402.1 kB / 0.7295 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001008/1.205, allocations: 368.2 kB / 0.7299 GB, free: 167.2 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.003756/1.209, allocations: 2.217 MB / 0.732 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000803/1.21, allocations: 394.8 kB / 0.7324 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0272/1.237, allocations: 11.06 MB / 0.7432 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.531e-05/1.237, allocations: 30.66 kB / 0.7432 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-05/1.237, allocations: 9.031 kB / 0.7433 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-05/1.237, allocations: 15.95 kB / 0.7433 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03933/1.276, allocations: 20.53 MB / 0.7633 GB, free: 138.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.36e-05/1.276, allocations: 6.953 kB / 0.7633 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001977/1.278, allocations: 391.3 kB / 0.7637 GB, free: 137.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01903/1.297, allocations: 5.151 MB / 0.7687 GB, free: 132.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000787/1.298, allocations: 44 kB / 0.7688 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02382/1.322, allocations: 22.23 MB / 0.7905 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/1.322, allocations: 11.94 kB / 0.7905 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02873/1.351, allocations: 14.3 MB / 0.8045 GB, free: 96.16 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/1.352, allocations: 448.5 kB / 0.8049 GB, free: 95.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001149/1.353, allocations: 49.34 kB / 0.8049 GB, free: 95.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002758/1.356, allocations: 178.5 kB / 0.8051 GB, free: 95.49 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007352/1.357, allocations: 152.9 kB / 0.8052 GB, free: 95.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/1.357, allocations: 72.61 kB / 0.8053 GB, free: 95.27 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003983/1.361, allocations: 2.722 MB / 0.808 GB, free: 92.54 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.8e-07/1.361, allocations: 0 / 0.808 GB, free: 92.54 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006326/1.368, allocations: 1.312 MB / 0.8093 GB, free: 91.23 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.02936/1.397, allocations: 14.94 MB / 0.8238 GB, free: 76.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01386/1.411, allocations: 9.481 MB / 0.8331 GB, free: 66.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/1.411, allocations: 12.12 kB / 0.8331 GB, free: 66.74 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004378/1.415, allocations: 3.166 MB / 0.8362 GB, free: 63.56 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00395/1.419, allocations: 0.5323 MB / 0.8367 GB, free: 63.04 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3733/1.793, allocations: 74.65 MB / 0.9096 GB, free: 186.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00526/1.798, allocations: 3.513 MB / 0.9131 GB, free: 186 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005618/1.804, allocations: 1.964 MB / 0.915 GB, free: 185.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003349/1.807, allocations: 2.072 MB / 0.917 GB, free: 185.9 MB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/1.807, allocations: 0 / 0.917 GB, free: 185.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1509/1.958, allocations: 109.1 MB / 1.024 GB, free: 96.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/13.85, allocations: 0 / 1.024 GB, free: 96.3 MB / 0.545 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