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.0007769/0.0007769, allocations: 91.81 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009047/0.0009046, allocations: 199 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.154/1.154, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1637/0.1637, allocations: 46.19 MB / 345.2 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002041/0.0002041, allocations: 4 kB / 419.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08344/0.08366, allocations: 63.56 MB / 483.2 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.1972/0.2808, allocations: 45.45 MB / 0.5162 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.2975, allocations: 9.954 MB / 0.526 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006264/0.3038, allocations: 201.1 kB / 0.5261 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.3049, allocations: 451.6 kB / 0.5266 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003728/0.3086, allocations: 1.871 MB / 0.5284 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.3101, allocations: 0.8324 MB / 0.5292 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007206/0.3173, allocations: 8.007 MB / 0.537 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004891/0.3222, allocations: 4.655 MB / 0.5416 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.3239, allocations: 1.317 MB / 0.5429 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002094/0.326, allocations: 2.405 MB / 0.5452 GB, free: 48 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003477/0.3264, allocations: 173.8 kB / 0.5454 GB, free: 48 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001884/0.3283, allocations: 1.274 MB / 0.5466 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001546/0.3298, allocations: 1.953 MB / 0.5485 GB, free: 14 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001753/0.3316, allocations: 2.241 MB / 0.5507 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00595/0.3376, allocations: 7.44 MB / 0.558 GB, free: 4.492 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3376, allocations: 0 / 0.558 GB, free: 4.492 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3376, allocations: 0 / 0.558 GB, free: 4.492 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.168e-05/0.3377, allocations: 0 / 0.558 GB, free: 4.492 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.008093/0.3458, allocations: 4.731 MB / 0.5626 GB, free: 15.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.3458, allocations: 12.88 kB / 0.5626 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009249/0.3468, allocations: 0.8032 MB / 0.5634 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03515/0.3819, allocations: 6.039 MB / 0.5693 GB, free: 8.875 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006152/0.3881, allocations: 3.774 MB / 0.573 GB, free: 5.086 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.3882, allocations: 237.2 kB / 0.5732 GB, free: 4.891 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005498/0.3888, allocations: 340.4 kB / 0.5735 GB, free: 4.594 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/0.4031, allocations: 10.81 MB / 0.5841 GB, free: 9.156 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/0.4032, allocations: 55.44 kB / 0.5841 GB, free: 9.102 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003387/0.4036, allocations: 157.6 kB / 0.5843 GB, free: 8.984 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002803/0.4064, allocations: 2.002 MB / 0.5862 GB, free: 6.992 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0146/0.421, allocations: 9.271 MB / 0.5953 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03776/0.4588, allocations: 40.99 MB / 0.6353 GB, free: 3.688 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009476/0.4683, allocations: 4.24 MB / 0.6395 GB, free: 15.31 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002186/0.4705, allocations: 1.896 MB / 0.6413 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008572/0.4791, allocations: 7.497 MB / 0.6486 GB, free: 5.578 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.4791, allocations: 63.44 kB / 0.6487 GB, free: 5.504 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 2.786e-06/0.4791, allocations: 0 / 0.6487 GB, free: 5.504 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1486/0.6277, allocations: 41.13 MB / 0.6889 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.391e-05/0.6278, allocations: 206 kB / 0.6891 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004796/0.6326, allocations: 4.32 MB / 0.6933 GB, free: 7.73 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002166/0.6329, allocations: 65.64 kB / 0.6933 GB, free: 7.66 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001874/0.6347, allocations: 3.218 MB / 0.6965 GB, free: 4.441 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007089/0.6354, allocations: 0.8776 MB / 0.6973 GB, free: 3.57 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000655/0.6361, allocations: 0.5233 MB / 0.6979 GB, free: 3.039 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 7.92e-05/0.6362, allocations: 309.1 kB / 0.6981 GB, free: 2.734 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00422/0.6404, allocations: 3.487 MB / 0.7016 GB, free: 15.24 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006245/0.6467, allocations: 7.114 MB / 0.7085 GB, free: 6.34 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1835/0.8302, allocations: 11.37 MB / 0.7196 GB, free: 187.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.603e-05/0.8303, allocations: 37.16 kB / 0.7196 GB, free: 187.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.0342/0.8645, allocations: 15.71 MB / 0.735 GB, free: 183.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.8646, allocations: 59.12 kB / 0.735 GB, free: 183.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001987/0.8648, allocations: 126 kB / 0.7352 GB, free: 183.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02139/0.8862, allocations: 6.094 MB / 0.7411 GB, free: 182.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004166/0.8904, allocations: 1.429 MB / 0.7425 GB, free: 182.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02559/0.9161, allocations: 25.69 MB / 0.7676 GB, free: 162.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004603/0.9207, allocations: 400.9 kB / 0.768 GB, free: 161.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007145/0.9214, allocations: 381.4 kB / 0.7683 GB, free: 161.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.002727/0.9242, allocations: 2.226 MB / 0.7705 GB, free: 159.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006142/0.9248, allocations: 392.5 kB / 0.7709 GB, free: 159.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02445/0.9492, allocations: 11.07 MB / 0.7817 GB, free: 148.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.072e-05/0.9493, allocations: 25.48 kB / 0.7817 GB, free: 148.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.9493, allocations: 12 kB / 0.7817 GB, free: 148.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.007e-05/0.9494, allocations: 11.95 kB / 0.7818 GB, free: 148.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03315/0.9825, allocations: 20.59 MB / 0.8019 GB, free: 127.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.471e-05/0.9826, allocations: 8 kB / 0.8019 GB, free: 127.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001739/0.9843, allocations: 383.4 kB / 0.8022 GB, free: 126.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01795/1.002, allocations: 5.177 MB / 0.8073 GB, free: 121.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003711/1.003, allocations: 44 kB / 0.8073 GB, free: 121.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02031/1.023, allocations: 20.8 MB / 0.8276 GB, free: 100.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.023, allocations: 7.938 kB / 0.8276 GB, free: 100.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02535/1.048, allocations: 14.32 MB / 0.8416 GB, free: 86.14 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007932/1.049, allocations: 451.8 kB / 0.8421 GB, free: 85.67 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000628/1.05, allocations: 48.05 kB / 0.8421 GB, free: 85.62 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002092/1.052, allocations: 180.7 kB / 0.8423 GB, free: 85.45 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005176/1.053, allocations: 154.3 kB / 0.8424 GB, free: 85.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001725/1.053, allocations: 72.12 kB / 0.8425 GB, free: 85.23 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002823/1.056, allocations: 2.726 MB / 0.8452 GB, free: 82.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/1.056, allocations: 0.75 kB / 0.8452 GB, free: 82.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004004/1.06, allocations: 1.307 MB / 0.8464 GB, free: 81.2 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.02523/1.085, allocations: 14.96 MB / 0.861 GB, free: 66.15 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008235/1.093, allocations: 8.075 MB / 0.8689 GB, free: 58.09 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/1.093, allocations: 0 / 0.8689 GB, free: 58.09 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003106/1.096, allocations: 3.177 MB / 0.872 GB, free: 54.91 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004815/1.101, allocations: 0.5111 MB / 0.8725 GB, free: 54.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2635/1.364, allocations: 76.72 MB / 0.9475 GB, free: 169.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002635/1.367, allocations: 3.505 MB / 0.9509 GB, free: 168.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003587/1.371, allocations: 1.964 MB / 0.9528 GB, free: 168.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001871/1.373, allocations: 2.071 MB / 0.9548 GB, free: 166.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/1.373, allocations: 0 / 0.9548 GB, free: 166.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09322/1.466, allocations: 104.8 MB / 1.057 GB, free: 68.18 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001357/1.466, allocations: 233.3 kB / 1.057 GB, free: 67.93 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.331/4.797, allocations: 0 / 1.057 GB, free: 67.93 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