Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001311/0.001311, allocations: 113.1 kB / 21.85 MB, free: 80 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001398/0.001398, allocations: 210.1 kB / 25.13 MB, free: 3.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 230.4 MB / 258.7 MB, free: 8.062 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2271/0.2271, allocations: 46.93 MB / 362 MB, free: 4.223 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002393/0.002393, allocations: 83.86 kB / 0.4978 GB, free: 7.383 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3917/0.3941, allocations: 66.08 MB / 0.5623 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01502/0.4091, allocations: 11.99 MB / 0.574 GB, free: 8.07 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009924/0.419, allocations: 4.333 MB / 0.5783 GB, free: 3.727 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001906/0.4209, allocations: 91.56 kB / 0.5784 GB, free: 3.637 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005375/0.4263, allocations: 2.78 MB / 0.5811 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005536/0.4318, allocations: 2.051 MB / 0.5831 GB, free: 14.79 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002137/0.4339, allocations: 0.9085 MB / 0.584 GB, free: 13.88 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00857/0.4425, allocations: 5.685 MB / 0.5895 GB, free: 8.184 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003766/0.4463, allocations: 2.813 MB / 0.5923 GB, free: 5.32 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003075/0.4494, allocations: 1.752 MB / 0.594 GB, free: 3.562 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004162/0.4535, allocations: 2.714 MB / 0.5966 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009259/0.4544, allocations: 388 kB / 0.597 GB, free: 472 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002649/0.4571, allocations: 1.311 MB / 0.5983 GB, free: 15.15 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002533/0.4596, allocations: 2.236 MB / 0.6004 GB, free: 12.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003092/0.4627, allocations: 2.427 MB / 0.6028 GB, free: 10.46 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01081/0.4735, allocations: 7.919 MB / 0.6106 GB, free: 2.516 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.4735, allocations: 0 / 0.6106 GB, free: 2.516 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4735, allocations: 0 / 0.6106 GB, free: 2.516 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002481/0.4738, allocations: 0 / 0.6106 GB, free: 2.516 MB / 446.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.01321/0.487, allocations: 5.555 MB / 0.616 GB, free: 12.89 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.487, allocations: 11.97 kB / 0.616 GB, free: 12.88 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01038/0.4974, allocations: 2.494 MB / 0.6184 GB, free: 10.38 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008151/0.5056, allocations: 3.297 MB / 0.6216 GB, free: 7.031 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002313/0.5058, allocations: 238.5 kB / 0.6219 GB, free: 6.797 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001167/0.507, allocations: 335.7 kB / 0.6222 GB, free: 6.469 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02128/0.5283, allocations: 10.93 MB / 0.6329 GB, free: 10.79 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001477/0.5284, allocations: 55.58 kB / 0.6329 GB, free: 10.73 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004374/0.5288, allocations: 159.8 kB / 0.6331 GB, free: 10.57 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0033/0.5321, allocations: 1.998 MB / 0.635 GB, free: 8.574 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01904/0.5512, allocations: 9.448 MB / 0.6442 GB, free: 15.11 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05455/0.6057, allocations: 40.85 MB / 0.6841 GB, free: 5.016 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01087/0.6166, allocations: 3.646 MB / 0.6877 GB, free: 1.34 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002863/0.6195, allocations: 1.777 MB / 0.6894 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01202/0.6315, allocations: 6.254 MB / 0.6955 GB, free: 9.266 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.814e-05/0.6315, allocations: 55.55 kB / 0.6956 GB, free: 9.203 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=180): time 5.44e-06/0.6315, allocations: 0 / 0.6956 GB, free: 9.203 MB / 0.5294 GB Notification: Performance of matching and sorting (n=236): time 0.1586/0.7902, allocations: 41.02 MB / 0.7357 GB, free: 140 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2485/1.039, allocations: 206.6 kB / 0.7359 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006067/1.045, allocations: 4.318 MB / 0.7401 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004893/1.045, allocations: 60.2 kB / 0.7401 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001249/1.046, allocations: 3.289 MB / 0.7433 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005884/1.047, allocations: 0.9137 MB / 0.7442 GB, free: 155 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001384/1.048, allocations: 1.363 MB / 0.7456 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.57e-05/1.049, allocations: 307 kB / 0.7459 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00355/1.052, allocations: 3.627 MB / 0.7494 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004722/1.057, allocations: 7.347 MB / 0.7566 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009356/1.066, allocations: 11.62 MB / 0.7679 GB, free: 134.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-05/1.066, allocations: 40 kB / 0.768 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03187/1.098, allocations: 16.18 MB / 0.7838 GB, free: 119.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.251e-05/1.098, allocations: 63.98 kB / 0.7838 GB, free: 119.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.86e-05/1.098, allocations: 128 kB / 0.7839 GB, free: 119 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02009/1.118, allocations: 6.221 MB / 0.79 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004842/1.123, allocations: 1.489 MB / 0.7915 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02911/1.152, allocations: 27.44 MB / 0.8183 GB, free: 83.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005786/1.158, allocations: 406.2 kB / 0.8187 GB, free: 83.25 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007729/1.159, allocations: 388 kB / 0.819 GB, free: 82.87 MB / 0.5606 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.002823/1.162, allocations: 2.213 MB / 0.8212 GB, free: 80.69 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006481/1.162, allocations: 417.2 kB / 0.8216 GB, free: 80.28 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02423/1.187, allocations: 11.26 MB / 0.8326 GB, free: 68.99 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.694e-05/1.187, allocations: 24 kB / 0.8326 GB, free: 68.97 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.788e-05/1.187, allocations: 12 kB / 0.8326 GB, free: 68.96 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.604e-05/1.187, allocations: 11.95 kB / 0.8326 GB, free: 68.95 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03625/1.223, allocations: 20.57 MB / 0.8527 GB, free: 47.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.043e-05/1.223, allocations: 11.94 kB / 0.8527 GB, free: 47.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001888/1.225, allocations: 388 kB / 0.8531 GB, free: 47.55 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01766/1.242, allocations: 5.309 MB / 0.8583 GB, free: 42.23 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006779/1.243, allocations: 47.66 kB / 0.8583 GB, free: 42.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0241/1.267, allocations: 22.5 MB / 0.8803 GB, free: 19.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.267, allocations: 8 kB / 0.8803 GB, free: 19.45 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02748/1.295, allocations: 14.58 MB / 0.8945 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001254/1.296, allocations: 393.1 kB / 0.8949 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000719/1.297, allocations: 43.98 kB / 0.895 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002208/1.299, allocations: 183.7 kB / 0.8951 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006782/1.3, allocations: 161 kB / 0.8953 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002022/1.3, allocations: 67.98 kB / 0.8954 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003577/1.303, allocations: 2.701 MB / 0.898 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/1.303, allocations: 0 / 0.898 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006136/1.31, allocations: 1.356 MB / 0.8993 GB, free: 15.88 MB / 0.5762 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.0007219/1.31, allocations: 191.3 kB / 0.8995 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01424/1.324, allocations: 8.01 MB / 0.9073 GB, free: 7.703 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/1.324, allocations: 0 / 0.9073 GB, free: 7.703 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00517/1.33, allocations: 2.989 MB / 0.9102 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00341/1.333, allocations: 0.4987 MB / 0.9107 GB, free: 4.207 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02194/1.355, allocations: 12.06 MB / 0.9225 GB, free: 8.051 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004468/1.359, allocations: 3.503 MB / 0.9259 GB, free: 4.516 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004572/1.364, allocations: 1.96 MB / 0.9278 GB, free: 2.551 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/1.365, allocations: 267.4 kB / 0.9281 GB, free: 2.289 MB / 0.5919 GB Notification: Performance of SimCode: time 1.122e-06/1.365, allocations: 0 / 0.9281 GB, free: 2.289 MB / 0.5919 GB Notification: Performance of Templates: time 0.4173/1.782, allocations: 72.17 MB / 0.9986 GB, free: 211.3 MB / 0.6387 GB " [Timeout remaining time 658] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.10739434696734]