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.001333/0.001333, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2304/0.2304, allocations: 46.11 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 71.89 kB / 417.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1421, allocations: 62.45 MB / 480 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01634/0.1585, allocations: 12.02 MB / 492 MB, free: 9.238 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.1691, allocations: 4.321 MB / 496.3 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002244/0.1714, allocations: 79.75 kB / 496.4 MB, free: 4.828 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00596/0.1774, allocations: 2.71 MB / 499.1 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006765/0.1842, allocations: 1.988 MB / 0.4894 GB, free: 116 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002759/0.187, allocations: 0.9008 MB / 0.4903 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.1971, allocations: 5.669 MB / 0.4958 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005674/0.2028, allocations: 3.362 MB / 0.4991 GB, free: 6.121 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003308/0.2062, allocations: 1.717 MB / 0.5008 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004021/0.2102, allocations: 2.508 MB / 0.5032 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001379/0.2116, allocations: 384 kB / 0.5036 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003026/0.2146, allocations: 1.393 MB / 0.5049 GB, free: 116 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2346/0.4493, allocations: 2.162 MB / 0.507 GB, free: 18.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007035/0.4564, allocations: 2.426 MB / 0.5094 GB, free: 17.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01587/0.4723, allocations: 7.603 MB / 0.5168 GB, free: 16.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.4723, allocations: 0 / 0.5168 GB, free: 16.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4723, allocations: 1.375 kB / 0.5168 GB, free: 16.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003278/0.4727, allocations: 0 / 0.5168 GB, free: 16.59 MB / 382.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.01935/0.492, allocations: 5.479 MB / 0.5222 GB, free: 14.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.4921, allocations: 10.03 kB / 0.5222 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01259/0.5047, allocations: 2.475 MB / 0.5246 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009123/0.5139, allocations: 3.304 MB / 0.5278 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.5141, allocations: 244.2 kB / 0.5281 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001537/0.5157, allocations: 334.8 kB / 0.5284 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02113/0.5368, allocations: 10.88 MB / 0.539 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001534/0.537, allocations: 48.47 kB / 0.5391 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005306/0.5375, allocations: 150 kB / 0.5392 GB, free: 6.234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00274/0.5403, allocations: 2.002 MB / 0.5412 GB, free: 5.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01773/0.558, allocations: 9.452 MB / 0.5504 GB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05911/0.6172, allocations: 41.22 MB / 0.5906 GB, free: 3.902 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0114/0.6286, allocations: 4.249 MB / 0.5948 GB, free: 15.52 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002759/0.6314, allocations: 1.937 MB / 0.5967 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01425/0.6457, allocations: 7.625 MB / 0.6041 GB, free: 5.621 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.276e-05/0.6458, allocations: 54.83 kB / 0.6042 GB, free: 5.559 MB / 446.1 MB Notification: Performance of pre-optimization done (n=180): time 7.745e-06/0.6458, allocations: 0 / 0.6042 GB, free: 5.559 MB / 446.1 MB Notification: Performance of matching and sorting (n=236): time 0.1775/0.8234, allocations: 40.92 MB / 0.6441 GB, free: 12.74 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/0.8236, allocations: 201.9 kB / 0.6443 GB, free: 12.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01169/0.8353, allocations: 4.297 MB / 0.6485 GB, free: 8.176 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001047/0.8364, allocations: 61.7 kB / 0.6486 GB, free: 8.109 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004326/0.8407, allocations: 3.179 MB / 0.6517 GB, free: 4.938 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002084/0.8428, allocations: 0.8788 MB / 0.6526 GB, free: 4.066 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005427/0.8483, allocations: 1.348 MB / 0.6539 GB, free: 2.707 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.8484, allocations: 305.1 kB / 0.6542 GB, free: 2.406 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006596/0.8551, allocations: 3.625 MB / 0.6577 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00968/0.8648, allocations: 7.298 MB / 0.6648 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01697/0.8818, allocations: 11.63 MB / 0.6762 GB, free: 8.832 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001761/0.882, allocations: 36 kB / 0.6762 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.0453/0.9273, allocations: 16.21 MB / 0.6921 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002809/0.9276, allocations: 60 kB / 0.6921 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004787/0.9281, allocations: 128 kB / 0.6922 GB, free: 8.641 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0266/0.9548, allocations: 6.224 MB / 0.6983 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006548/0.9614, allocations: 1.497 MB / 0.6998 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3275/1.289, allocations: 27.62 MB / 0.7267 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006836/1.296, allocations: 410.2 kB / 0.7271 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001076/1.297, allocations: 387.7 kB / 0.7275 GB, free: 166.8 MB / 0.5294 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.004324/1.301, allocations: 2.218 MB / 0.7297 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001011/1.302, allocations: 391.5 kB / 0.73 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02798/1.33, allocations: 11.29 MB / 0.7411 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.702e-05/1.33, allocations: 25.41 kB / 0.7411 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.252e-05/1.33, allocations: 12 kB / 0.7411 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.158e-05/1.33, allocations: 11.95 kB / 0.7411 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04231/1.373, allocations: 20.7 MB / 0.7613 GB, free: 139.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.784e-05/1.373, allocations: 11.31 kB / 0.7613 GB, free: 139.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002073/1.375, allocations: 379.4 kB / 0.7617 GB, free: 139.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0198/1.395, allocations: 5.314 MB / 0.7669 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006764/1.395, allocations: 47.94 kB / 0.7669 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02425/1.42, allocations: 22.7 MB / 0.7891 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.167e-05/1.42, allocations: 13.12 kB / 0.7891 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03172/1.451, allocations: 14.59 MB / 0.8034 GB, free: 96.47 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001545/1.453, allocations: 446.4 kB / 0.8038 GB, free: 96.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008453/1.454, allocations: 46.5 kB / 0.8038 GB, free: 95.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002405/1.456, allocations: 187.8 kB / 0.804 GB, free: 95.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006648/1.457, allocations: 156.9 kB / 0.8042 GB, free: 95.64 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001997/1.457, allocations: 60 kB / 0.8042 GB, free: 95.58 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003912/1.461, allocations: 2.705 MB / 0.8069 GB, free: 92.87 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.4e-07/1.461, allocations: 0 / 0.8069 GB, free: 92.87 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006214/1.467, allocations: 1.358 MB / 0.8082 GB, free: 91.52 MB / 0.5294 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.0005965/1.468, allocations: 183 kB / 0.8084 GB, free: 91.34 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01414/1.482, allocations: 9.725 MB / 0.8179 GB, free: 81.64 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.719e-05/1.482, allocations: 0.5625 kB / 0.8179 GB, free: 81.64 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003871/1.486, allocations: 3.212 MB / 0.821 GB, free: 78.43 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00365/1.49, allocations: 0.503 MB / 0.8215 GB, free: 77.94 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01895/1.509, allocations: 11.93 MB / 0.8332 GB, free: 65.93 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003172/1.512, allocations: 3.508 MB / 0.8366 GB, free: 62.39 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004505/1.516, allocations: 1.96 MB / 0.8385 GB, free: 60.42 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008964/1.517, allocations: 271.4 kB / 0.8388 GB, free: 60.16 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/1.517, allocations: 0 / 0.8388 GB, free: 60.16 MB / 0.5294 GB Notification: Performance of Templates: time 0.3835/1.901, allocations: 69.98 MB / 0.9071 GB, free: 183.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches