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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.001607/0.001607, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 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 0.9972/0.9972, allocations: 177 MB / 204.8 MB, free: 5.555 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3225/0.3225, allocations: 34.85 MB / 296.3 MB, free: 0.543 MB / 266.7 MB " [Timeout remaining time 180] 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=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 378.7 MB, free: 2.094 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.616e-05/2.762e-05, allocations: 2.875 kB / 378.7 MB, free: 2.09 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.009673/0.0097, allocations: 11.62 MB / 390.4 MB, free: 6.41 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.007849/0.01755, allocations: 4.244 MB / 394.6 MB, free: 2.152 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.01905, allocations: 91.5 kB / 394.7 MB, free: 2.062 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003242/0.02229, allocations: 2.932 MB / 397.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003995/0.02629, allocations: 2.111 MB / 399.7 MB, free: 13 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.02773, allocations: 1.025 MB / 400.8 MB, free: 11.97 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006215/0.03395, allocations: 6.407 MB / 407.2 MB, free: 5.555 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003225/0.03718, allocations: 3.451 MB / 410.6 MB, free: 2.055 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00366/0.04084, allocations: 2.639 MB / 413.3 MB, free: 15.41 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002937/0.04377, allocations: 2.872 MB / 416.1 MB, free: 12.53 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006353/0.04441, allocations: 396 kB / 416.5 MB, free: 12.14 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002012/0.04642, allocations: 1.361 MB / 417.9 MB, free: 10.78 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002094/0.04851, allocations: 2.345 MB / 420.2 MB, free: 8.43 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001682/0.0502, allocations: 1.46 MB / 421.7 MB, free: 6.965 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005593/0.05579, allocations: 5.353 MB / 427.1 MB, free: 1.594 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.05579, allocations: 4 kB / 427.1 MB, free: 1.59 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.0558, allocations: 0 / 427.1 MB, free: 1.59 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001245/0.05592, allocations: 0 / 427.1 MB, free: 1.59 MB / 394.7 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.008306/0.06423, allocations: 5.994 MB / 433 MB, free: 11.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.06428, allocations: 8.031 kB / 433.1 MB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00663/0.07091, allocations: 3.013 MB / 436.1 MB, free: 8.488 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00431/0.07522, allocations: 2.967 MB / 439 MB, free: 5.469 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.07535, allocations: 234.5 kB / 439.3 MB, free: 5.238 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005295/0.07588, allocations: 336.3 kB / 439.6 MB, free: 4.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1896/0.2655, allocations: 6.702 MB / 446.3 MB, free: 87.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000178/0.2656, allocations: 50.14 kB / 446.3 MB, free: 87.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003566/0.266, allocations: 152.7 kB / 446.5 MB, free: 87.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001817/0.2678, allocations: 2.001 MB / 448.5 MB, free: 87.67 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008568/0.2764, allocations: 3.885 MB / 452.4 MB, free: 87.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03001/0.3064, allocations: 44.9 MB / 497.3 MB, free: 52.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005396/0.3118, allocations: 2.302 MB / 499.6 MB, free: 51.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.3128, allocations: 0.6861 MB / 0.4885 GB, free: 51.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006912/0.3197, allocations: 4.697 MB / 0.4931 GB, free: 49.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/0.3198, allocations: 57.38 kB / 0.4932 GB, free: 49.15 MB / 410.7 MB Notification: Performance of pre-optimization done (n=180): time 5.44e-06/0.3198, allocations: 0 / 0.4932 GB, free: 49.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=236): time 0.05671/0.3765, allocations: 24.59 MB / 0.5172 GB, free: 38.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.29e-05/0.3766, allocations: 205.9 kB / 0.5174 GB, free: 38.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004088/0.3807, allocations: 3.694 MB / 0.521 GB, free: 35.19 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006378/0.3813, allocations: 61.7 kB / 0.5211 GB, free: 35.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001577/0.3829, allocations: 3.457 MB / 0.5244 GB, free: 31.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001026/0.3839, allocations: 0.94 MB / 0.5254 GB, free: 30.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001402/0.3853, allocations: 1.412 MB / 0.5267 GB, free: 29.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.649e-05/0.3854, allocations: 480.7 kB / 0.5272 GB, free: 28.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001734/0.3871, allocations: 1.316 MB / 0.5285 GB, free: 27.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003216/0.3903, allocations: 6.783 MB / 0.5351 GB, free: 18.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006734/0.3971, allocations: 8.858 MB / 0.5438 GB, free: 7.031 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001139/0.3972, allocations: 40 kB / 0.5438 GB, free: 6.992 MB / 410.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.02068/0.4178, allocations: 10.42 MB / 0.554 GB, free: 12.56 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.336e-05/0.4179, allocations: 60.06 kB / 0.554 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001217/0.418, allocations: 128 kB / 0.5541 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01431/0.4324, allocations: 5.214 MB / 0.5592 GB, free: 7.156 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003828/0.4362, allocations: 1.489 MB / 0.5607 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/0.4523, allocations: 9.914 MB / 0.5704 GB, free: 11.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004658/0.457, allocations: 467.3 kB / 0.5708 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/0.4581, allocations: 384 kB / 0.5712 GB, free: 10.68 MB / 442.7 MB 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 (778): * Single equations (assignments): 773 * 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.001998/0.4601, allocations: 0.6841 MB / 0.5719 GB, free: 9.984 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/0.4612, allocations: 441.5 kB / 0.5723 GB, free: 9.551 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01424/0.4754, allocations: 6.708 MB / 0.5788 GB, free: 2.816 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.557e-05/0.4755, allocations: 24 kB / 0.5788 GB, free: 2.793 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.772e-05/0.4755, allocations: 12 kB / 0.5789 GB, free: 2.781 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-05/0.4755, allocations: 7.969 kB / 0.5789 GB, free: 2.773 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03039/0.5059, allocations: 13.66 MB / 0.5922 GB, free: 4.699 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-05/0.5059, allocations: 8.031 kB / 0.5922 GB, free: 4.691 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/0.5076, allocations: 383.4 kB / 0.5926 GB, free: 4.316 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01658/0.5242, allocations: 4.668 MB / 0.5971 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005756/0.5248, allocations: 43.94 kB / 0.5972 GB, free: 15.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01526/0.5401, allocations: 8.72 MB / 0.6057 GB, free: 6.641 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.5401, allocations: 11.94 kB / 0.6057 GB, free: 6.629 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1957/0.7358, allocations: 7.609 MB / 0.6131 GB, free: 131.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/0.7368, allocations: 374.9 kB / 0.6135 GB, free: 131.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000392/0.7372, allocations: 41.81 kB / 0.6135 GB, free: 131.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001355/0.7386, allocations: 229.4 kB / 0.6138 GB, free: 131.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004629/0.739, allocations: 162.9 kB / 0.6139 GB, free: 131.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/0.7392, allocations: 69.75 kB / 0.614 GB, free: 131.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00197/0.7412, allocations: 1.622 MB / 0.6156 GB, free: 131.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.7412, allocations: 0 / 0.6156 GB, free: 131.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00462/0.7458, allocations: 1.486 MB / 0.617 GB, free: 131.7 MB / 474.7 MB 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.0004839/0.7463, allocations: 194.6 kB / 0.6172 GB, free: 131.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006443/0.7527, allocations: 4.647 MB / 0.6217 GB, free: 131.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.7527, allocations: 2.812 kB / 0.6217 GB, free: 131.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002162/0.7549, allocations: 1.677 MB / 0.6234 GB, free: 131.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/0.7572, allocations: 472.2 kB / 0.6238 GB, free: 131.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01407/0.7713, allocations: 9.25 MB / 0.6329 GB, free: 127.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001513/0.7728, allocations: 1.376 MB / 0.6342 GB, free: 127.6 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003022/0.7758, allocations: 1.595 MB / 0.6358 GB, free: 127.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008352/0.7766, allocations: 255.9 kB / 0.636 GB, free: 127.5 MB / 474.7 MB Notification: Performance of SimCode: time 2.826e-06/0.7766, allocations: 1.531 kB / 0.636 GB, free: 127.5 MB / 474.7 MB Notification: Performance of Templates: time 0.07888/0.8555, allocations: 67.41 MB / 0.7018 GB, free: 84.78 MB / 474.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.120279037859291]