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.001437/0.001437, allocations: 117.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, allocations: 208.6 kB / 18.74 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2606/0.2606, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 76.16 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4146/0.4163, allocations: 62.43 MB / 0.5305 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01423/0.4306, allocations: 12.03 MB / 0.5422 GB, free: 3.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01079/0.4415, allocations: 4.31 MB / 0.5464 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002987/0.4445, allocations: 77.03 kB / 0.5465 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005456/0.45, allocations: 2.735 MB / 0.5492 GB, free: 14.61 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006379/0.4564, allocations: 1.976 MB / 0.5511 GB, free: 12.63 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002212/0.4587, allocations: 0.9085 MB / 0.552 GB, free: 11.72 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00824/0.4669, allocations: 5.668 MB / 0.5575 GB, free: 6.043 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004673/0.4716, allocations: 3.358 MB / 0.5608 GB, free: 2.637 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003584/0.4752, allocations: 1.713 MB / 0.5625 GB, free: 0.918 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003896/0.4792, allocations: 2.52 MB / 0.565 GB, free: 14.39 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001054/0.4802, allocations: 384 kB / 0.5653 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003387/0.4836, allocations: 1.385 MB / 0.5667 GB, free: 12.63 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002775/0.4864, allocations: 2.205 MB / 0.5688 GB, free: 10.42 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003317/0.4898, allocations: 2.494 MB / 0.5713 GB, free: 7.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.5008, allocations: 7.985 MB / 0.5791 GB, free: 15.9 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.5009, allocations: 0 / 0.5791 GB, free: 15.9 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5009, allocations: 0 / 0.5791 GB, free: 15.9 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002496/0.5012, allocations: 0 / 0.5791 GB, free: 15.9 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.01559/0.5168, allocations: 5.661 MB / 0.5846 GB, free: 10.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.5168, allocations: 12.02 kB / 0.5846 GB, free: 10.15 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001328/0.5182, allocations: 0.8006 MB / 0.5854 GB, free: 9.336 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03927/0.5575, allocations: 5.958 MB / 0.5912 GB, free: 3.363 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.5677, allocations: 3.852 MB / 0.595 GB, free: 15.45 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001985/0.5679, allocations: 242.3 kB / 0.5952 GB, free: 15.21 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001251/0.5692, allocations: 335.7 kB / 0.5955 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01882/0.588, allocations: 10.79 MB / 0.606 GB, free: 3.352 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001322/0.5882, allocations: 51.48 kB / 0.6061 GB, free: 3.301 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004236/0.5886, allocations: 155.9 kB / 0.6062 GB, free: 3.148 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003092/0.5917, allocations: 1.998 MB / 0.6082 GB, free: 1.145 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01989/0.6116, allocations: 9.233 MB / 0.6172 GB, free: 7.895 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05708/0.6688, allocations: 40.83 MB / 0.6571 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01084/0.6797, allocations: 4.215 MB / 0.6612 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002727/0.6824, allocations: 1.89 MB / 0.6631 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/0.6961, allocations: 7.497 MB / 0.6704 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.464e-05/0.6962, allocations: 59.48 kB / 0.6704 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=180): time 5.25e-06/0.6962, allocations: 0 / 0.6704 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of matching and sorting (n=236): time 0.1693/0.8655, allocations: 40.63 MB / 0.7101 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.8656, allocations: 213.9 kB / 0.7103 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008091/0.8737, allocations: 4.317 MB / 0.7145 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006717/0.8744, allocations: 61.7 kB / 0.7146 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.2938/1.168, allocations: 3.212 MB / 0.7177 GB, free: 166.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001315/1.17, allocations: 0.8743 MB / 0.7186 GB, free: 165.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002556/1.172, allocations: 1.284 MB / 0.7198 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.24e-05/1.172, allocations: 309.7 kB / 0.7201 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004906/1.177, allocations: 3.491 MB / 0.7235 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007795/1.185, allocations: 7.112 MB / 0.7305 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01206/1.197, allocations: 11.37 MB / 0.7416 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002062/1.197, allocations: 37.62 kB / 0.7416 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03638/1.234, allocations: 15.7 MB / 0.757 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.721e-05/1.234, allocations: 60.06 kB / 0.757 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001013/1.234, allocations: 128 kB / 0.7571 GB, free: 138.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02271/1.257, allocations: 6.053 MB / 0.763 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00513/1.262, allocations: 1.431 MB / 0.7644 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02969/1.292, allocations: 27.14 MB / 0.7909 GB, free: 103.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007376/1.299, allocations: 395 kB / 0.7913 GB, free: 103.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001353/1.3, allocations: 380 kB / 0.7917 GB, free: 103 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.003446/1.304, allocations: 2.212 MB / 0.7938 GB, free: 100.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00078/1.305, allocations: 402.8 kB / 0.7942 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02652/1.331, allocations: 11.05 MB / 0.805 GB, free: 89.25 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-05/1.331, allocations: 25.75 kB / 0.805 GB, free: 89.23 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.037e-05/1.331, allocations: 15.94 kB / 0.8051 GB, free: 89.21 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.094e-05/1.331, allocations: 12.47 kB / 0.8051 GB, free: 89.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04217/1.374, allocations: 20.48 MB / 0.8251 GB, free: 68.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.132e-05/1.374, allocations: 8 kB / 0.8251 GB, free: 68.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00213/1.376, allocations: 383.4 kB / 0.8254 GB, free: 67.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01951/1.395, allocations: 5.149 MB / 0.8305 GB, free: 62.77 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005165/1.396, allocations: 36 kB / 0.8305 GB, free: 62.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02356/1.419, allocations: 22.25 MB / 0.8522 GB, free: 40.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/1.419, allocations: 8 kB / 0.8522 GB, free: 40.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02885/1.448, allocations: 14.3 MB / 0.8662 GB, free: 25.81 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/1.45, allocations: 446 kB / 0.8666 GB, free: 25.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007527/1.45, allocations: 51.92 kB / 0.8667 GB, free: 25.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002396/1.453, allocations: 171.7 kB / 0.8668 GB, free: 25.13 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006651/1.453, allocations: 157 kB / 0.867 GB, free: 24.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002028/1.454, allocations: 63.75 kB / 0.8671 GB, free: 24.92 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003718/1.457, allocations: 2.73 MB / 0.8697 GB, free: 22.18 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/1.457, allocations: 4 kB / 0.8697 GB, free: 22.18 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006229/1.464, allocations: 1.31 MB / 0.871 GB, free: 20.88 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.02858/1.492, allocations: 14.94 MB / 0.8856 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01203/1.504, allocations: 8.113 MB / 0.8935 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.26e-05/1.504, allocations: 4 kB / 0.8935 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005136/1.51, allocations: 3.171 MB / 0.8966 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00352/1.513, allocations: 0.5319 MB / 0.8971 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4502/1.963, allocations: 66.88 MB / 0.9624 GB, free: 214.8 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003947/1.967, allocations: 3.509 MB / 0.9659 GB, free: 213.4 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.004373/1.972, allocations: 1.96 MB / 0.9678 GB, free: 212.7 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002912/1.975, allocations: 2.072 MB / 0.9698 GB, free: 210.8 MB / 0.6231 GB Notification: Performance of SimCode: time 1.152e-06/1.975, allocations: 0 / 0.9698 GB, free: 210.8 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1399/2.115, allocations: 107.3 MB / 1.075 GB, free: 107.8 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.06/28.17, allocations: 11.77 kB / 1.075 GB, free: 107.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/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