Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009204/0.0009204, allocations: 75.59 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 161 kB / 24.56 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9869/0.9869, allocations: 177.1 MB / 205 MB, free: 5.293 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2702/0.2702, allocations: 32.81 MB / 294.3 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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.0.0_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.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 376 MB, free: 4.711 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.527e-05/2.705e-05, allocations: 5.406 kB / 376 MB, free: 4.707 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.00921/0.009237, allocations: 11.64 MB / 387.6 MB, free: 9.008 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.007629/0.01687, allocations: 4.24 MB / 391.9 MB, free: 4.758 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00206/0.01893, allocations: 87.56 kB / 392 MB, free: 4.672 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003987/0.02291, allocations: 2.924 MB / 394.9 MB, free: 1.738 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005147/0.02806, allocations: 2.123 MB / 397 MB, free: 15.6 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001692/0.02975, allocations: 1.017 MB / 398 MB, free: 14.58 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007318/0.03707, allocations: 6.405 MB / 404.4 MB, free: 8.168 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004194/0.04127, allocations: 3.439 MB / 407.9 MB, free: 4.68 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004219/0.04548, allocations: 2.654 MB / 410.5 MB, free: 2.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003618/0.0491, allocations: 2.864 MB / 413.4 MB, free: 15.15 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009485/0.05005, allocations: 396 kB / 413.8 MB, free: 14.76 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002073/0.05212, allocations: 1.361 MB / 415.1 MB, free: 13.4 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001762/0.05389, allocations: 2.353 MB / 417.5 MB, free: 11.04 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001953/0.05584, allocations: 1.453 MB / 418.9 MB, free: 9.582 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005902/0.06174, allocations: 5.357 MB / 424.3 MB, free: 4.207 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.06175, allocations: 0 / 424.3 MB, free: 4.207 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.06175, allocations: 4 kB / 424.3 MB, free: 4.203 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001887/0.06194, allocations: 0 / 424.3 MB, free: 4.203 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.008858/0.0708, allocations: 5.994 MB / 430.3 MB, free: 14.13 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.07085, allocations: 8.031 kB / 430.3 MB, free: 14.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006773/0.07762, allocations: 3.009 MB / 433.3 MB, free: 11.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005484/0.08311, allocations: 2.971 MB / 436.3 MB, free: 8.086 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001608/0.08327, allocations: 246.5 kB / 436.5 MB, free: 7.844 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006432/0.08391, allocations: 328.3 kB / 436.9 MB, free: 7.523 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1893/0.2732, allocations: 6.709 MB / 443.6 MB, free: 90.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002017/0.2734, allocations: 48.39 kB / 443.6 MB, free: 90.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005558/0.274, allocations: 159.8 kB / 443.8 MB, free: 90.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001954/0.2759, allocations: 1.994 MB / 445.8 MB, free: 90.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009244/0.2852, allocations: 3.89 MB / 449.6 MB, free: 90.76 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03385/0.319, allocations: 44.9 MB / 494.6 MB, free: 55.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005057/0.3241, allocations: 2.291 MB / 496.8 MB, free: 55.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009359/0.325, allocations: 0.6853 MB / 497.5 MB, free: 55.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005925/0.3309, allocations: 4.691 MB / 0.4904 GB, free: 52.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.368e-05/0.331, allocations: 61.56 kB / 0.4905 GB, free: 52.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=180): time 5.771e-06/0.331, allocations: 0 / 0.4905 GB, free: 52.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=236): time 0.05583/0.3868, allocations: 24.59 MB / 0.5145 GB, free: 42.63 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/0.3869, allocations: 205.9 kB / 0.5147 GB, free: 42.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003882/0.3908, allocations: 3.692 MB / 0.5183 GB, free: 38.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006009/0.3914, allocations: 61.7 kB / 0.5184 GB, free: 38.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/0.3929, allocations: 3.456 MB / 0.5218 GB, free: 35.37 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009244/0.3938, allocations: 0.9458 MB / 0.5227 GB, free: 34.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001336/0.3951, allocations: 1.411 MB / 0.5241 GB, free: 33.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.317e-05/0.3952, allocations: 480.7 kB / 0.5245 GB, free: 32.54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001888/0.3971, allocations: 1.317 MB / 0.5258 GB, free: 31.22 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003208/0.4003, allocations: 6.778 MB / 0.5324 GB, free: 21.97 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006528/0.4068, allocations: 8.866 MB / 0.5411 GB, free: 10.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001223/0.4069, allocations: 36 kB / 0.5411 GB, free: 10.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.02026/0.4272, allocations: 10.41 MB / 0.5513 GB, free: 236 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.754e-05/0.4272, allocations: 60 kB / 0.5513 GB, free: 176 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-05/0.4273, allocations: 128 kB / 0.5515 GB, free: 48 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01431/0.4417, allocations: 5.216 MB / 0.5565 GB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003669/0.4453, allocations: 1.493 MB / 0.558 GB, free: 9.336 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01475/0.4601, allocations: 9.926 MB / 0.5677 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004281/0.4644, allocations: 467.2 kB / 0.5681 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009908/0.4653, allocations: 388 kB / 0.5685 GB, free: 14.34 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.001915/0.4673, allocations: 0.6769 MB / 0.5692 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008918/0.4682, allocations: 437.5 kB / 0.5696 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01454/0.4827, allocations: 6.708 MB / 0.5761 GB, free: 6.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.505e-05/0.4827, allocations: 24 kB / 0.5762 GB, free: 6.457 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/0.4828, allocations: 12 kB / 0.5762 GB, free: 6.445 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.872e-05/0.4828, allocations: 11.97 kB / 0.5762 GB, free: 6.434 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02761/0.5104, allocations: 13.65 MB / 0.5895 GB, free: 8.367 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.824e-05/0.5105, allocations: 7.984 kB / 0.5895 GB, free: 8.359 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001785/0.5123, allocations: 384 kB / 0.5899 GB, free: 7.984 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01608/0.5283, allocations: 4.681 MB / 0.5945 GB, free: 3.293 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004643/0.5288, allocations: 39.94 kB / 0.5945 GB, free: 3.254 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.18/0.7088, allocations: 8.712 MB / 0.603 GB, free: 120.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/0.7088, allocations: 9.219 kB / 0.603 GB, free: 120.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01918/0.728, allocations: 7.616 MB / 0.6105 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/0.7293, allocations: 373.7 kB / 0.6108 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006669/0.73, allocations: 51.86 kB / 0.6109 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001858/0.7318, allocations: 229.9 kB / 0.6111 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006517/0.7325, allocations: 154 kB / 0.6112 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001956/0.7327, allocations: 67.44 kB / 0.6113 GB, free: 119.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002282/0.7349, allocations: 1.62 MB / 0.6129 GB, free: 119.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7349, allocations: 0 / 0.6129 GB, free: 119.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005301/0.7402, allocations: 1.492 MB / 0.6143 GB, free: 119.7 MB / 458.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.0005938/0.7408, allocations: 203.3 kB / 0.6145 GB, free: 119.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007356/0.7482, allocations: 4.648 MB / 0.6191 GB, free: 119.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/0.7482, allocations: 0 / 0.6191 GB, free: 119.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002378/0.7506, allocations: 1.67 MB / 0.6207 GB, free: 119.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002336/0.7529, allocations: 469.8 kB / 0.6211 GB, free: 119 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/0.7665, allocations: 9.258 MB / 0.6302 GB, free: 115.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001875/0.7684, allocations: 1.372 MB / 0.6315 GB, free: 114.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00343/0.7718, allocations: 1.596 MB / 0.6331 GB, free: 114.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/0.7729, allocations: 254.1 kB / 0.6333 GB, free: 114.6 MB / 458.7 MB Notification: Performance of SimCode: time 2.635e-06/0.7729, allocations: 0 / 0.6333 GB, free: 114.6 MB / 458.7 MB Notification: Performance of Templates: time 0.08131/0.8542, allocations: 67.4 MB / 0.6991 GB, free: 60.6 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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","",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.150638564024121]