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.001475/0.001475, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00201/0.00201, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.181/2.181, allocations: 227.4 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4019/0.4019, allocations: 46.11 MB / 344.3 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 76 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1817/0.1834, allocations: 62.45 MB / 479.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.5104/0.6939, allocations: 46.69 MB / 0.5143 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04408/0.738, allocations: 10.03 MB / 0.5241 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01814/0.7562, allocations: 204.1 kB / 0.5243 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009612/0.766, allocations: 2.704 MB / 0.5269 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01021/0.7762, allocations: 1.864 MB / 0.5287 GB, free: 6.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004196/0.7805, allocations: 0.833 MB / 0.5295 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01641/0.7969, allocations: 7.998 MB / 0.5374 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007378/0.8044, allocations: 3.306 MB / 0.5406 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005432/0.8099, allocations: 1.527 MB / 0.5421 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006891/0.8169, allocations: 2.668 MB / 0.5447 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002792/0.8197, allocations: 264.3 kB / 0.5449 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006135/0.8259, allocations: 1.356 MB / 0.5463 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005363/0.8313, allocations: 2.082 MB / 0.5483 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007659/0.839, allocations: 2.316 MB / 0.5505 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.851, allocations: 6.116 MB / 0.5565 GB, free: 4.305 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.103e-05/0.851, allocations: 0 / 0.5565 GB, free: 4.305 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.786e-06/0.8511, allocations: 0 / 0.5565 GB, free: 4.305 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.00035/0.8514, allocations: 0 / 0.5565 GB, free: 4.305 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.02383/0.8753, allocations: 5.486 MB / 0.5619 GB, free: 14.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.851e-05/0.8754, allocations: 12.03 kB / 0.5619 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01605/0.8915, allocations: 2.47 MB / 0.5643 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01064/0.9022, allocations: 3.309 MB / 0.5675 GB, free: 9.023 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003618/0.9026, allocations: 235.2 kB / 0.5678 GB, free: 8.828 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001863/0.9045, allocations: 334.6 kB / 0.5681 GB, free: 8.539 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02904/0.9335, allocations: 10.88 MB / 0.5787 GB, free: 13.02 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003412/0.9339, allocations: 43.59 kB / 0.5787 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00175/0.9357, allocations: 158.9 kB / 0.5789 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006528/0.9423, allocations: 1.996 MB / 0.5808 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03538/0.9777, allocations: 9.442 MB / 0.5901 GB, free: 1.414 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07235/1.05, allocations: 41.23 MB / 0.6303 GB, free: 7.164 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01269/1.063, allocations: 4.259 MB / 0.6345 GB, free: 2.77 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005406/1.068, allocations: 1.931 MB / 0.6364 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0239/1.092, allocations: 7.618 MB / 0.6438 GB, free: 8.883 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001075/1.092, allocations: 51.56 kB / 0.6439 GB, free: 8.82 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 1.276e-05/1.093, allocations: 0 / 0.6439 GB, free: 8.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.2534/1.346, allocations: 40.92 MB / 0.6838 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/1.346, allocations: 205.9 kB / 0.684 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008857/1.355, allocations: 4.297 MB / 0.6882 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007438/1.356, allocations: 61.7 kB / 0.6883 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003316/1.359, allocations: 3.169 MB / 0.6914 GB, free: 8.086 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001869/1.361, allocations: 0.8817 MB / 0.6922 GB, free: 7.211 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00441/1.365, allocations: 1.355 MB / 0.6936 GB, free: 5.848 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001378/1.366, allocations: 301.1 kB / 0.6938 GB, free: 5.551 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006695/1.372, allocations: 3.628 MB / 0.6974 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01084/1.383, allocations: 7.291 MB / 0.7045 GB, free: 8.824 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4046/1.788, allocations: 11.63 MB / 0.7159 GB, free: 188.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001937/1.788, allocations: 36.59 kB / 0.7159 GB, free: 188.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.05237/1.841, allocations: 16.21 MB / 0.7317 GB, free: 184 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001508/1.841, allocations: 59.22 kB / 0.7318 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000262/1.841, allocations: 131.8 kB / 0.7319 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04138/1.882, allocations: 6.222 MB / 0.738 GB, free: 183 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008805/1.891, allocations: 1.49 MB / 0.7394 GB, free: 182.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03293/1.924, allocations: 26.14 MB / 0.765 GB, free: 163.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007031/1.931, allocations: 403.9 kB / 0.7654 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001432/1.933, allocations: 387.9 kB / 0.7657 GB, free: 162.4 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.003948/1.937, allocations: 2.23 MB / 0.7679 GB, free: 160.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009404/1.938, allocations: 390.9 kB / 0.7683 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03755/1.975, allocations: 11.29 MB / 0.7793 GB, free: 148.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.216e-05/1.975, allocations: 30.73 kB / 0.7793 GB, free: 148.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.666e-05/1.975, allocations: 8 kB / 0.7793 GB, free: 148.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-05/1.976, allocations: 15.95 kB / 0.7793 GB, free: 148.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05867/2.034, allocations: 20.7 MB / 0.7996 GB, free: 127.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.465e-05/2.034, allocations: 7.938 kB / 0.7996 GB, free: 127.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002928/2.037, allocations: 387.4 kB / 0.7999 GB, free: 127.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02515/2.062, allocations: 5.309 MB / 0.8051 GB, free: 121.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007112/2.063, allocations: 44 kB / 0.8052 GB, free: 121.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04118/2.104, allocations: 21.21 MB / 0.8259 GB, free: 100.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.139e-05/2.104, allocations: 15.94 kB / 0.8259 GB, free: 100.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04862/2.153, allocations: 14.6 MB / 0.8401 GB, free: 85.75 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/2.155, allocations: 451.9 kB / 0.8406 GB, free: 85.29 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001481/2.156, allocations: 36 kB / 0.8406 GB, free: 85.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003912/2.16, allocations: 183.7 kB / 0.8408 GB, free: 85.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/2.161, allocations: 157 kB / 0.8409 GB, free: 84.92 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003843/2.162, allocations: 60.88 kB / 0.841 GB, free: 84.86 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006328/2.168, allocations: 2.701 MB / 0.8436 GB, free: 82.15 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.21e-07/2.168, allocations: 0 / 0.8436 GB, free: 82.15 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01131/2.179, allocations: 1.36 MB / 0.845 GB, free: 80.8 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.001246/2.181, allocations: 192.5 kB / 0.8451 GB, free: 80.61 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01693/2.198, allocations: 8.315 MB / 0.8533 GB, free: 72.32 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/2.198, allocations: 256 / 0.8533 GB, free: 72.32 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006355/2.204, allocations: 3.216 MB / 0.8564 GB, free: 69.09 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005297/2.209, allocations: 486.8 kB / 0.8569 GB, free: 68.62 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02864/2.238, allocations: 14.43 MB / 0.871 GB, free: 54.11 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006275/2.244, allocations: 3.472 MB / 0.8744 GB, free: 50.61 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001942/2.246, allocations: 311.4 kB / 0.8746 GB, free: 50.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.092e-06/2.246, allocations: 0 / 0.8746 GB, free: 50.3 MB / 0.545 GB Notification: Performance of Templates: time 0.5569/2.803, allocations: 109.4 MB / 0.9815 GB, free: 131.8 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