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.001282/0.001281, allocations: 122.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.001361/0.001362, allocations: 201.2 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.477/1.477, allocations: 227.4 MB / 247 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2192/0.2192, allocations: 46.13 MB / 344.4 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002219/0.002219, allocations: 75.88 kB / 480.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.3841, allocations: 62.45 MB / 0.5306 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01589/0.4001, allocations: 12.02 MB / 0.5423 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.4118, allocations: 4.316 MB / 0.5466 GB, free: 0.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003298/0.4151, allocations: 75.94 kB / 0.5466 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00649/0.4217, allocations: 2.726 MB / 0.5493 GB, free: 14.69 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006283/0.428, allocations: 1.973 MB / 0.5512 GB, free: 12.71 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002313/0.4304, allocations: 0.9086 MB / 0.5521 GB, free: 11.8 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009435/0.4398, allocations: 5.676 MB / 0.5577 GB, free: 6.109 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006165/0.446, allocations: 3.354 MB / 0.5609 GB, free: 2.711 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004161/0.4502, allocations: 1.713 MB / 0.5626 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004468/0.4547, allocations: 2.512 MB / 0.5651 GB, free: 14.47 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001766/0.4565, allocations: 384 kB / 0.5654 GB, free: 14.1 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003886/0.4604, allocations: 1.389 MB / 0.5668 GB, free: 12.71 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003526/0.464, allocations: 2.17 MB / 0.5689 GB, free: 10.53 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004795/0.4688, allocations: 2.486 MB / 0.5713 GB, free: 8.031 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01266/0.4815, allocations: 8.017 MB / 0.5792 GB, free: 15.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.352e-05/0.4816, allocations: 8 kB / 0.5792 GB, free: 15.97 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4816, allocations: 0 / 0.5792 GB, free: 15.97 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002796/0.4819, allocations: 0 / 0.5792 GB, free: 15.97 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.01515/0.497, allocations: 5.806 MB / 0.5848 GB, free: 10.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.4971, allocations: 8.031 kB / 0.5848 GB, free: 10.08 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001486/0.4986, allocations: 0.8006 MB / 0.5856 GB, free: 9.266 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0393/0.5379, allocations: 5.989 MB / 0.5915 GB, free: 3.266 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008914/0.5469, allocations: 3.869 MB / 0.5953 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002065/0.5471, allocations: 238.2 kB / 0.5955 GB, free: 15.1 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008646/0.548, allocations: 339.7 kB / 0.5958 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01898/0.567, allocations: 10.78 MB / 0.6063 GB, free: 3.25 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001325/0.5671, allocations: 59.58 kB / 0.6064 GB, free: 3.191 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004172/0.5676, allocations: 155.9 kB / 0.6065 GB, free: 3.039 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00331/0.5709, allocations: 2.002 MB / 0.6085 GB, free: 1.031 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0184/0.5893, allocations: 9.241 MB / 0.6175 GB, free: 7.773 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05177/0.6411, allocations: 40.88 MB / 0.6574 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01133/0.6525, allocations: 4.232 MB / 0.6616 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002857/0.6554, allocations: 1.888 MB / 0.6634 GB, free: 7.398 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01151/0.6669, allocations: 7.506 MB / 0.6707 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.079e-05/0.667, allocations: 55.5 kB / 0.6708 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=180): time 3.778e-06/0.667, allocations: 0 / 0.6708 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of matching and sorting (n=236): time 0.1651/0.8321, allocations: 40.89 MB / 0.7107 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.8323, allocations: 201.9 kB / 0.7109 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006602/0.8389, allocations: 4.333 MB / 0.7152 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005402/0.8394, allocations: 61.7 kB / 0.7152 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.2685/1.108, allocations: 3.337 MB / 0.7185 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001401/1.109, allocations: 0.9136 MB / 0.7194 GB, free: 165.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00288/1.112, allocations: 1.297 MB / 0.7206 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.643e-05/1.112, allocations: 304.9 kB / 0.7209 GB, free: 165 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004709/1.117, allocations: 3.489 MB / 0.7243 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007127/1.124, allocations: 7.108 MB / 0.7313 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/1.135, allocations: 11.36 MB / 0.7424 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001464/1.135, allocations: 39.25 kB / 0.7424 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03349/1.169, allocations: 15.71 MB / 0.7577 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.308e-05/1.169, allocations: 56 kB / 0.7578 GB, free: 138.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001146/1.169, allocations: 128 kB / 0.7579 GB, free: 138.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02161/1.191, allocations: 6.066 MB / 0.7638 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004675/1.195, allocations: 1.435 MB / 0.7652 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02921/1.224, allocations: 27.16 MB / 0.7918 GB, free: 103.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006825/1.231, allocations: 398.3 kB / 0.7921 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001408/1.233, allocations: 376 kB / 0.7925 GB, free: 102.5 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.004064/1.237, allocations: 2.21 MB / 0.7947 GB, free: 100.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009797/1.238, allocations: 429.1 kB / 0.7951 GB, free: 99.95 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02562/1.264, allocations: 11.05 MB / 0.8059 GB, free: 88.86 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.095e-05/1.264, allocations: 24 kB / 0.8059 GB, free: 88.84 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/1.264, allocations: 19.94 kB / 0.8059 GB, free: 88.82 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.152e-05/1.264, allocations: 7.969 kB / 0.8059 GB, free: 88.81 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03812/1.302, allocations: 20.48 MB / 0.8259 GB, free: 67.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-05/1.302, allocations: 12.59 kB / 0.8259 GB, free: 67.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002157/1.304, allocations: 383.4 kB / 0.8263 GB, free: 67.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02002/1.324, allocations: 5.144 MB / 0.8313 GB, free: 62.37 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005502/1.325, allocations: 40 kB / 0.8314 GB, free: 62.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.023/1.348, allocations: 22.24 MB / 0.8531 GB, free: 39.81 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/1.348, allocations: 12.03 kB / 0.8531 GB, free: 39.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02791/1.376, allocations: 14.32 MB / 0.8671 GB, free: 25.39 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/1.377, allocations: 469 kB / 0.8675 GB, free: 24.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009074/1.378, allocations: 47.94 kB / 0.8676 GB, free: 24.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002424/1.38, allocations: 175.7 kB / 0.8677 GB, free: 24.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000665/1.381, allocations: 157 kB / 0.8679 GB, free: 24.55 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002038/1.381, allocations: 60 kB / 0.8679 GB, free: 24.49 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00327/1.384, allocations: 2.726 MB / 0.8706 GB, free: 21.76 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/1.384, allocations: 7.938 kB / 0.8706 GB, free: 21.75 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00571/1.39, allocations: 1.315 MB / 0.8719 GB, free: 20.45 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.02806/1.418, allocations: 14.96 MB / 0.8865 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01119/1.429, allocations: 8.123 MB / 0.8944 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/1.43, allocations: 4 kB / 0.8944 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005255/1.435, allocations: 3.174 MB / 0.8975 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003472/1.438, allocations: 0.5377 MB / 0.8981 GB, free: 9.566 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4266/1.865, 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.002886/1.868, allocations: 3.513 MB / 0.967 GB, free: 213 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00362/1.872, allocations: 1.958 MB / 0.9689 GB, free: 212.3 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002238/1.874, allocations: 2.075 MB / 0.9709 GB, free: 210.4 MB / 0.6231 GB Notification: Performance of SimCode: time 8.32e-07/1.874, allocations: 0 / 0.9709 GB, free: 210.4 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1407/2.015, allocations: 105.3 MB / 1.074 GB, free: 108.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.45/27.46, allocations: 11.77 kB / 1.074 GB, free: 108.7 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