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: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009787/0.0009787, allocations: 95.8 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001263, allocations: 202.1 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.7 MB / 247.5 MB, free: 9.707 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.199/0.199, allocations: 46.19 MB / 345.9 MB, free: 11.19 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002858/0.0002857, allocations: 8 kB / 420.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1153, allocations: 63.57 MB / 483.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.2574/0.3728, allocations: 45.44 MB / 0.5168 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02175/0.3945, allocations: 9.953 MB / 0.5265 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009604/0.4042, allocations: 201.1 kB / 0.5267 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.4062, allocations: 453.7 kB / 0.5271 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006292/0.4125, allocations: 1.87 MB / 0.5289 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002092/0.4146, allocations: 0.8294 MB / 0.5298 GB, free: 7.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009698/0.4243, allocations: 8.007 MB / 0.5376 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005922/0.4303, allocations: 4.659 MB / 0.5421 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002235/0.4325, allocations: 1.316 MB / 0.5434 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003205/0.4358, allocations: 2.403 MB / 0.5458 GB, free: 148 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005191/0.4363, allocations: 174.4 kB / 0.5459 GB, free: 148 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002323/0.4386, allocations: 1.269 MB / 0.5472 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001958/0.4406, allocations: 1.957 MB / 0.5491 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002412/0.443, allocations: 2.187 MB / 0.5512 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00661/0.4496, allocations: 5.978 MB / 0.557 GB, free: 6.098 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.4497, allocations: 0 / 0.557 GB, free: 6.098 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.4497, allocations: 0 / 0.557 GB, free: 6.098 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001838/0.4499, allocations: 3.938 kB / 0.557 GB, free: 6.094 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.009822/0.4597, allocations: 4.578 MB / 0.5615 GB, free: 1.469 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.4598, allocations: 16.03 kB / 0.5615 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01168/0.4715, allocations: 2.524 MB / 0.564 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007109/0.4786, allocations: 3.297 MB / 0.5672 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002111/0.4788, allocations: 241.1 kB / 0.5674 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001118/0.48, allocations: 336.8 kB / 0.5678 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02107/0.5011, allocations: 10.9 MB / 0.5784 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000209/0.5013, allocations: 55.53 kB / 0.5785 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001036/0.5024, allocations: 155.1 kB / 0.5786 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003344/0.5057, allocations: 1.998 MB / 0.5806 GB, free: 13.42 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01961/0.5253, allocations: 9.47 MB / 0.5898 GB, free: 3.934 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05299/0.5784, allocations: 41.23 MB / 0.6301 GB, free: 9.672 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/0.5896, allocations: 4.273 MB / 0.6343 GB, free: 5.262 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002763/0.5924, allocations: 1.935 MB / 0.6361 GB, free: 3.316 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01135/0.6038, allocations: 7.611 MB / 0.6436 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.645e-05/0.6038, allocations: 55.5 kB / 0.6436 GB, free: 11.31 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 3.857e-06/0.6039, allocations: 0 / 0.6436 GB, free: 11.31 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1704/0.7743, allocations: 41.41 MB / 0.6841 GB, free: 1.84 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.7744, allocations: 205.9 kB / 0.6843 GB, free: 1.594 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00805/0.7825, allocations: 4.301 MB / 0.6885 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000623/0.7832, allocations: 64.44 kB / 0.6885 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002735/0.7859, allocations: 3.167 MB / 0.6916 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001438/0.7874, allocations: 0.8771 MB / 0.6925 GB, free: 9.164 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00143/0.7888, allocations: 0.5653 MB / 0.693 GB, free: 8.594 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.789, allocations: 313.1 kB / 0.6933 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005926/0.7949, allocations: 3.628 MB / 0.6969 GB, free: 4.652 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008584/0.8035, allocations: 7.294 MB / 0.704 GB, free: 11.55 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2589/1.062, allocations: 11.62 MB / 0.7153 GB, free: 189 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001693/1.063, allocations: 39.91 kB / 0.7154 GB, free: 189 MB / 0.545 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.0455/1.108, allocations: 16.22 MB / 0.7312 GB, free: 185.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001878/1.108, allocations: 59.28 kB / 0.7313 GB, free: 185.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003209/1.109, allocations: 131.5 kB / 0.7314 GB, free: 185.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02415/1.133, allocations: 6.255 MB / 0.7375 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005002/1.138, allocations: 1.498 MB / 0.739 GB, free: 184.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03053/1.168, allocations: 26.15 MB / 0.7645 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005669/1.174, allocations: 417.2 kB / 0.7649 GB, free: 164.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001125/1.175, allocations: 393.5 kB / 0.7653 GB, free: 164.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * 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 (779): * Single equations (assignments): 774 * 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.004167/1.179, allocations: 2.213 MB / 0.7674 GB, free: 162.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001014/1.18, allocations: 389.4 kB / 0.7678 GB, free: 161.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0288/1.209, allocations: 11.31 MB / 0.7789 GB, free: 150.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-05/1.209, allocations: 24 kB / 0.7789 GB, free: 150.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.289e-05/1.209, allocations: 12 kB / 0.7789 GB, free: 150.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.026e-05/1.209, allocations: 13.03 kB / 0.7789 GB, free: 150.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04554/1.255, allocations: 20.78 MB / 0.7992 GB, free: 129.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.527e-05/1.255, allocations: 4 kB / 0.7992 GB, free: 129.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002062/1.257, allocations: 383.4 kB / 0.7996 GB, free: 129 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0207/1.278, allocations: 5.34 MB / 0.8048 GB, free: 123.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005532/1.279, allocations: 40 kB / 0.8048 GB, free: 123.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02533/1.304, allocations: 21.24 MB / 0.8256 GB, free: 102.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/1.304, allocations: 8 kB / 0.8256 GB, free: 102.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03056/1.334, allocations: 14.62 MB / 0.8398 GB, free: 87.48 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/1.336, allocations: 461.7 kB / 0.8403 GB, free: 87 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001304/1.337, allocations: 41.41 kB / 0.8403 GB, free: 86.96 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003149/1.34, allocations: 185.6 kB / 0.8405 GB, free: 86.79 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009381/1.341, allocations: 156.9 kB / 0.8406 GB, free: 86.63 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004075/1.342, allocations: 65.48 kB / 0.8407 GB, free: 86.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004962/1.347, allocations: 2.705 MB / 0.8434 GB, free: 83.86 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.91e-07/1.347, allocations: 0 / 0.8434 GB, free: 83.86 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006817/1.353, allocations: 1.357 MB / 0.8447 GB, free: 82.5 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.0007782/1.354, allocations: 185.1 kB / 0.8449 GB, free: 82.32 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01178/1.366, allocations: 8.311 MB / 0.853 GB, free: 74.03 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/1.366, allocations: 0 / 0.853 GB, free: 74.03 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004453/1.371, allocations: 3.216 MB / 0.8561 GB, free: 70.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006943/1.377, allocations: 491 kB / 0.8566 GB, free: 70.33 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02101/1.399, allocations: 14.5 MB / 0.8707 GB, free: 55.74 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004748/1.403, allocations: 3.484 MB / 0.8741 GB, free: 52.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001488/1.405, allocations: 299.4 kB / 0.8744 GB, free: 51.93 MB / 0.545 GB Notification: Performance of SimCode: time 9.12e-07/1.405, allocations: 4 kB / 0.8744 GB, free: 51.93 MB / 0.545 GB Notification: Performance of Templates: time 0.3983/1.803, allocations: 108.5 MB / 0.9804 GB, free: 132.1 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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