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.001231/0.001231, allocations: 114.9 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2189/0.2189, allocations: 46.1 MB / 343.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 72.17 kB / 417.1 MB, free: 19.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1284, allocations: 62.45 MB / 479.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3131/0.4415, allocations: 46.69 MB / 0.514 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02251/0.4641, allocations: 9.911 MB / 0.5236 GB, free: 8.141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01185/0.476, allocations: 207 kB / 0.5238 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005869/0.4819, allocations: 2.622 MB / 0.5264 GB, free: 7.344 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006034/0.488, allocations: 1.855 MB / 0.5282 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002317/0.4903, allocations: 0.8523 MB / 0.529 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008462/0.4988, allocations: 6.057 MB / 0.5349 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005458/0.5043, allocations: 3.548 MB / 0.5384 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003364/0.5077, allocations: 1.755 MB / 0.5401 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003419/0.5112, allocations: 2.788 MB / 0.5429 GB, free: 56 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009836/0.5122, allocations: 384.4 kB / 0.5432 GB, free: 56 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003005/0.5152, allocations: 1.404 MB / 0.5446 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002511/0.5177, allocations: 2.193 MB / 0.5467 GB, free: 13.94 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004059/0.5218, allocations: 2.514 MB / 0.5492 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01101/0.5328, allocations: 7.788 MB / 0.5568 GB, free: 3.812 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.282e-05/0.5329, allocations: 8 kB / 0.5568 GB, free: 3.805 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5329, allocations: 3.938 kB / 0.5568 GB, free: 3.801 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002714/0.5332, allocations: 0 / 0.5568 GB, free: 3.801 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.01558/0.5488, allocations: 5.672 MB / 0.5623 GB, free: 14.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.5488, allocations: 8.031 kB / 0.5623 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001833/0.5507, allocations: 0.8053 MB / 0.5631 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03782/0.5885, allocations: 5.954 MB / 0.5689 GB, free: 7.406 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01023/0.5988, allocations: 3.786 MB / 0.5726 GB, free: 3.605 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.599, allocations: 237.7 kB / 0.5729 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00105/0.6001, allocations: 340.9 kB / 0.5732 GB, free: 3.113 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02029/0.6204, allocations: 10.77 MB / 0.5837 GB, free: 7.707 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000159/0.6206, allocations: 51.53 kB / 0.5838 GB, free: 7.656 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004407/0.6211, allocations: 163.9 kB / 0.5839 GB, free: 7.535 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003186/0.6243, allocations: 1.998 MB / 0.5859 GB, free: 5.547 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01948/0.6438, allocations: 9.242 MB / 0.5949 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05839/0.7022, allocations: 40.98 MB / 0.6349 GB, free: 2.285 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01152/0.7138, allocations: 4.219 MB / 0.639 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003006/0.7168, allocations: 1.899 MB / 0.6409 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/0.7301, allocations: 7.501 MB / 0.6482 GB, free: 4.188 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.926e-05/0.7302, allocations: 55.44 kB / 0.6483 GB, free: 4.121 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 6.111e-06/0.7303, allocations: 0 / 0.6483 GB, free: 4.121 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.17/0.9003, allocations: 40.64 MB / 0.688 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001938/0.9005, allocations: 205.9 kB / 0.6882 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009112/0.9097, allocations: 4.328 MB / 0.6924 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000628/0.9103, allocations: 53.7 kB / 0.6924 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002853/0.9132, allocations: 3.219 MB / 0.6956 GB, free: 3.59 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001329/0.9146, allocations: 0.8739 MB / 0.6964 GB, free: 2.723 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002733/0.9173, allocations: 1.283 MB / 0.6977 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.9174, allocations: 305.1 kB / 0.698 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005227/0.9227, allocations: 3.491 MB / 0.7014 GB, free: 13.63 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007947/0.9306, allocations: 7.11 MB / 0.7083 GB, free: 4.734 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3117/1.242, allocations: 11.37 MB / 0.7194 GB, free: 185.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.243e-05/1.242, allocations: 36.19 kB / 0.7195 GB, free: 185.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.04037/1.283, allocations: 15.69 MB / 0.7348 GB, free: 180.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001807/1.283, allocations: 63.88 kB / 0.7349 GB, free: 180.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003091/1.283, allocations: 126.7 kB / 0.735 GB, free: 180.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02255/1.306, allocations: 6.063 MB / 0.7409 GB, free: 179.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00496/1.311, allocations: 1.426 MB / 0.7423 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0306/1.342, allocations: 27.14 MB / 0.7688 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006434/1.348, allocations: 401.6 kB / 0.7692 GB, free: 158.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001547/1.35, allocations: 376 kB / 0.7695 GB, free: 158.1 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.004784/1.354, allocations: 2.214 MB / 0.7717 GB, free: 156 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/1.356, allocations: 395.7 kB / 0.7721 GB, free: 155.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02435/1.38, allocations: 11.06 MB / 0.7829 GB, free: 144.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.619e-05/1.38, allocations: 24 kB / 0.7829 GB, free: 144.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.127e-05/1.38, allocations: 12.75 kB / 0.7829 GB, free: 144.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.055e-05/1.38, allocations: 11.95 kB / 0.7829 GB, free: 144.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03714/1.417, allocations: 20.53 MB / 0.803 GB, free: 123.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.662e-05/1.417, allocations: 4.594 kB / 0.803 GB, free: 123.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/1.419, allocations: 387.4 kB / 0.8034 GB, free: 123.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01827/1.438, allocations: 5.144 MB / 0.8084 GB, free: 118.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005208/1.438, allocations: 44 kB / 0.8084 GB, free: 118.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02363/1.462, allocations: 22.24 MB / 0.8301 GB, free: 95.76 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/1.462, allocations: 6.344 kB / 0.8302 GB, free: 95.76 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02643/1.488, allocations: 14.31 MB / 0.8441 GB, free: 81.36 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001216/1.49, allocations: 443.9 kB / 0.8446 GB, free: 80.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006784/1.49, allocations: 40 kB / 0.8446 GB, free: 80.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002081/1.492, allocations: 175.7 kB / 0.8448 GB, free: 80.69 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006418/1.493, allocations: 157 kB / 0.8449 GB, free: 80.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002015/1.493, allocations: 64 kB / 0.845 GB, free: 80.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003384/1.497, allocations: 2.73 MB / 0.8476 GB, free: 77.74 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.21e-07/1.497, allocations: 0 / 0.8476 GB, free: 77.74 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005674/1.502, allocations: 1.307 MB / 0.8489 GB, free: 76.44 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.02744/1.53, allocations: 14.94 MB / 0.8635 GB, free: 61.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01294/1.543, allocations: 9.492 MB / 0.8728 GB, free: 51.95 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/1.543, allocations: 0 / 0.8728 GB, free: 51.95 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003864/1.547, allocations: 3.174 MB / 0.8759 GB, free: 48.77 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003404/1.55, allocations: 0.5387 MB / 0.8764 GB, free: 48.24 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3962/1.946, allocations: 76.59 MB / 0.9512 GB, free: 166.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003651/1.95, allocations: 3.509 MB / 0.9546 GB, free: 164.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004763/1.955, allocations: 1.966 MB / 0.9565 GB, free: 163.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00293/1.958, allocations: 2.072 MB / 0.9586 GB, free: 161.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.182e-06/1.958, allocations: 3.281 kB / 0.9586 GB, free: 161.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1451/2.103, allocations: 108.9 MB / 1.065 GB, free: 56.58 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/2.103, allocations: 236.5 kB / 1.065 GB, free: 56.33 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.527/6.63, allocations: 4 kB / 1.065 GB, free: 56.32 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