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.001262/0.001262, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001656/0.001656, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2346/0.2346, allocations: 46.11 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 72.41 kB / 416.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1273, allocations: 62.46 MB / 479.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.2955/0.4228, allocations: 46.69 MB / 0.5137 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03014/0.453, allocations: 10.02 MB / 0.5235 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01383/0.4669, allocations: 208.6 kB / 0.5237 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006533/0.4735, allocations: 2.706 MB / 0.5264 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006753/0.4803, allocations: 1.855 MB / 0.5282 GB, free: 6.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00275/0.4831, allocations: 0.8381 MB / 0.529 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01129/0.4944, allocations: 7.999 MB / 0.5368 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005833/0.5003, allocations: 3.309 MB / 0.54 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004475/0.5048, allocations: 1.526 MB / 0.5415 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006179/0.511, allocations: 2.665 MB / 0.5441 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002122/0.5132, allocations: 263.2 kB / 0.5444 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004421/0.5176, allocations: 1.36 MB / 0.5457 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003791/0.5214, allocations: 2.082 MB / 0.5478 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00571/0.5272, allocations: 2.369 MB / 0.5501 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01398/0.5412, allocations: 7.645 MB / 0.5575 GB, free: 2.762 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.285e-06/0.5412, allocations: 0 / 0.5575 GB, free: 2.762 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5412, allocations: 0 / 0.5575 GB, free: 2.762 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003251/0.5416, allocations: 0 / 0.5575 GB, free: 2.762 MB / 398.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.02331/0.5649, allocations: 5.673 MB / 0.5631 GB, free: 13.12 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.581e-05/0.565, allocations: 16.81 kB / 0.5631 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003504/0.5685, allocations: 0.7975 MB / 0.5639 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05013/0.6187, allocations: 5.957 MB / 0.5697 GB, free: 6.363 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008336/0.627, allocations: 3.786 MB / 0.5734 GB, free: 2.562 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001991/0.6273, allocations: 242.1 kB / 0.5736 GB, free: 2.363 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001094/0.6284, allocations: 342.7 kB / 0.5739 GB, free: 2.066 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02183/0.6502, allocations: 10.78 MB / 0.5845 GB, free: 6.656 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001951/0.6505, allocations: 51.53 kB / 0.5845 GB, free: 6.605 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005148/0.651, allocations: 152.6 kB / 0.5847 GB, free: 6.492 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00325/0.6543, allocations: 2.002 MB / 0.5866 GB, free: 4.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01962/0.6739, allocations: 9.236 MB / 0.5956 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05799/0.7319, allocations: 40.98 MB / 0.6357 GB, free: 1.242 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01107/0.7431, allocations: 4.222 MB / 0.6398 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002821/0.7459, allocations: 1.885 MB / 0.6416 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01216/0.7581, allocations: 7.513 MB / 0.649 GB, free: 3.145 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.123e-05/0.7582, allocations: 59.44 kB / 0.649 GB, free: 3.074 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 5.189e-06/0.7582, allocations: 0 / 0.649 GB, free: 3.074 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1586/0.9168, allocations: 40.64 MB / 0.6887 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.917, allocations: 209.9 kB / 0.6889 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006725/0.9237, allocations: 4.32 MB / 0.6931 GB, free: 5.836 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005437/0.9243, allocations: 61.7 kB / 0.6932 GB, free: 5.77 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002448/0.9267, allocations: 3.212 MB / 0.6963 GB, free: 2.555 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001082/0.9278, allocations: 0.8827 MB / 0.6972 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001838/0.9297, allocations: 1.279 MB / 0.6984 GB, free: 400 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.9298, allocations: 305.1 kB / 0.6987 GB, free: 92 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004727/0.9345, allocations: 3.491 MB / 0.7021 GB, free: 12.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006855/0.9414, allocations: 7.114 MB / 0.7091 GB, free: 3.691 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3324/1.274, allocations: 11.36 MB / 0.7202 GB, free: 185.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002017/1.274, allocations: 37.09 kB / 0.7202 GB, free: 185.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.04217/1.316, allocations: 15.7 MB / 0.7355 GB, free: 180.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/1.316, allocations: 58.41 kB / 0.7356 GB, free: 180.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002356/1.317, allocations: 130.5 kB / 0.7357 GB, free: 180.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02249/1.339, allocations: 6.058 MB / 0.7416 GB, free: 179.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00567/1.345, allocations: 1.435 MB / 0.743 GB, free: 179.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03348/1.378, allocations: 25.66 MB / 0.7681 GB, free: 159.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006266/1.385, allocations: 396.8 kB / 0.7685 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001509/1.386, allocations: 380 kB / 0.7688 GB, free: 158.6 MB / 0.545 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.004984/1.391, allocations: 2.216 MB / 0.771 GB, free: 156.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001396/1.393, allocations: 401.8 kB / 0.7714 GB, free: 156.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02614/1.419, allocations: 11.05 MB / 0.7822 GB, free: 145.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.744e-05/1.419, allocations: 31.83 kB / 0.7822 GB, free: 145.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.928e-05/1.419, allocations: 15.94 kB / 0.7822 GB, free: 145.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-05/1.419, allocations: 11.95 kB / 0.7822 GB, free: 145.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04156/1.461, allocations: 20.52 MB / 0.8023 GB, free: 124.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.56e-05/1.461, allocations: 8 kB / 0.8023 GB, free: 124.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002013/1.463, allocations: 383.4 kB / 0.8026 GB, free: 123.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01806/1.481, allocations: 5.147 MB / 0.8077 GB, free: 118.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005231/1.481, allocations: 40 kB / 0.8077 GB, free: 118.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02417/1.506, allocations: 20.78 MB / 0.828 GB, free: 97.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/1.506, allocations: 4 kB / 0.828 GB, free: 97.69 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02855/1.534, allocations: 14.3 MB / 0.842 GB, free: 83.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/1.536, allocations: 447.8 kB / 0.8424 GB, free: 82.84 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001599/1.537, allocations: 36.88 kB / 0.8424 GB, free: 82.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003305/1.54, allocations: 179.7 kB / 0.8426 GB, free: 82.62 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001062/1.542, allocations: 160.9 kB / 0.8428 GB, free: 82.47 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004585/1.542, allocations: 63.98 kB / 0.8428 GB, free: 82.41 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005174/1.547, allocations: 2.73 MB / 0.8455 GB, free: 79.68 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/1.547, allocations: 1.422 kB / 0.8455 GB, free: 79.68 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007064/1.554, allocations: 1.307 MB / 0.8468 GB, free: 78.37 MB / 0.545 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.02954/1.584, allocations: 14.94 MB / 0.8614 GB, free: 63.34 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01183/1.596, allocations: 8.08 MB / 0.8692 GB, free: 55.28 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/1.596, allocations: 4 kB / 0.8692 GB, free: 55.27 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004499/1.6, allocations: 3.173 MB / 0.8723 GB, free: 52.09 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005158/1.605, allocations: 0.506 MB / 0.8728 GB, free: 51.59 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3919/1.997, allocations: 76.61 MB / 0.9476 GB, free: 166.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005343/2.003, allocations: 3.501 MB / 0.9511 GB, free: 164.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005203/2.008, allocations: 1.967 MB / 0.953 GB, free: 164.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003106/2.011, allocations: 2.074 MB / 0.955 GB, free: 163.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.694e-06/2.011, allocations: 0 / 0.955 GB, free: 163.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1337/2.145, allocations: 106.3 MB / 1.059 GB, free: 62.33 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001442/2.145, allocations: 248.5 kB / 1.059 GB, free: 62.07 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.282/6.427, allocations: 0 / 1.059 GB, free: 62.07 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 & /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