Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.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.001459/0.001459, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.00197/0.00197, allocations: 169 kB / 24.91 MB, free: 9.191 MB / 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.993/0.993, allocations: 177.1 MB / 205.3 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2564/0.2564, allocations: 34.26 MB / 296.1 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.Forces.SpringDamperSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic1.s|prismatic1.v|sps1.s_damper|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries") translateModel(ModelicaTest.MultiBody.Forces.SpringDamperSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic1.s|prismatic1.v|sps1.s_damper|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 325.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.708e-06/1.092e-05, allocations: 2.312 kB / 325.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.SpringDamperSeries): time 0.007373/0.007384, allocations: 9.957 MB / 335.2 MB, free: 13.64 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004964/0.01235, allocations: 3.302 MB / 338.5 MB, free: 10.33 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006063/0.01295, allocations: 59.75 kB / 338.6 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002358/0.01531, allocations: 2.538 MB / 341.1 MB, free: 7.723 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001708/0.01702, allocations: 1.313 MB / 342.4 MB, free: 6.402 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007936/0.01781, allocations: 0.5454 MB / 343 MB, free: 5.855 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002301/0.02011, allocations: 3.005 MB / 346 MB, free: 2.844 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001981/0.0221, allocations: 2.591 MB / 348.6 MB, free: 184 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001572/0.02367, allocations: 1.988 MB / 350.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001208/0.02488, allocations: 1.547 MB / 352.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002592/0.02513, allocations: 284 kB / 352.4 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009395/0.02607, allocations: 0.936 MB / 353.3 MB, free: 11.42 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008606/0.02694, allocations: 1.667 MB / 355 MB, free: 9.75 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007243/0.02766, allocations: 1.086 MB / 356.1 MB, free: 8.66 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002531/0.03019, allocations: 3.958 MB / 360 MB, free: 4.688 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.03019, allocations: 4 kB / 360 MB, free: 4.684 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.03019, allocations: 0 / 360 MB, free: 4.684 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.416e-05/0.03022, allocations: 0 / 360 MB, free: 4.684 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1473 * Number of variables: 1473 Notification: Performance of Generate backend data structure: time 0.003306/0.03352, allocations: 3.99 MB / 364 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.906e-05/0.03355, allocations: 11.97 kB / 364 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002024/0.03558, allocations: 1.004 MB / 365 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.0369, allocations: 1.34 MB / 366.4 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.03701, allocations: 230.2 kB / 366.6 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00031/0.03732, allocations: 304.2 kB / 366.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004958/0.04228, allocations: 4.903 MB / 371.8 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.193e-05/0.04234, allocations: 43.64 kB / 371.8 MB, free: 8.145 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002169/0.04256, allocations: 139.9 kB / 372 MB, free: 8.008 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00137/0.04393, allocations: 1.744 MB / 373.7 MB, free: 6.262 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004021/0.04795, allocations: 2.546 MB / 376.3 MB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01731/0.06526, allocations: 28.92 MB / 405.2 MB, free: 5.656 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003583/0.06884, allocations: 1.997 MB / 407.2 MB, free: 3.598 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004183/0.06926, allocations: 444.5 kB / 407.6 MB, free: 3.145 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003365/0.07262, allocations: 3.454 MB / 411.1 MB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.07265, allocations: 47.56 kB / 411.1 MB, free: 15.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=152): time 2.425e-06/0.07265, allocations: 0 / 411.1 MB, free: 15.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=166): time 0.01576/0.08841, allocations: 7.656 MB / 418.8 MB, free: 7.902 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.08846, allocations: 145.5 kB / 418.9 MB, free: 7.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.0899, allocations: 2.44 MB / 421.4 MB, free: 5.266 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.84e-05/0.08997, allocations: 45.7 kB / 421.4 MB, free: 5.215 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001123/0.09109, allocations: 2.946 MB / 424.3 MB, free: 2.238 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005766/0.09167, allocations: 0.6744 MB / 425 MB, free: 1.559 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007971/0.09247, allocations: 1.12 MB / 426.1 MB, free: 436 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.461e-05/0.09256, allocations: 357.8 kB / 426.5 MB, free: 72 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006702/0.09323, allocations: 0.629 MB / 427.1 MB, free: 15.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002252/0.09548, allocations: 4.189 MB / 431.3 MB, free: 9.398 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003493/0.09898, allocations: 5.538 MB / 436.9 MB, free: 2.023 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.251e-05/0.09901, allocations: 36 kB / 436.9 MB, free: 1.988 MB / 410.7 MB Notification: Performance of matching and sorting (n=773) (initialization): time 0.003644/0.1027, allocations: 4.045 MB / 440.9 MB, free: 13.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.743e-05/0.1027, allocations: 60 kB / 441 MB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.954e-05/0.1028, allocations: 132 kB / 441.1 MB, free: 13.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005101/0.1033, allocations: 319.5 kB / 441.4 MB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001949/0.1052, allocations: 1.341 MB / 442.8 MB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003644/0.1056, allocations: 262.9 kB / 443 MB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.107, allocations: 263.7 kB / 443.3 MB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002426/0.1072, allocations: 312 kB / 443.6 MB, free: 11.26 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 596 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],s1.color[3],s1.color[2],s1.color[1],s1.massColor[3],s1.massColor[2],s1.massColor[1],sps1.color[3],sps1.color[2],sps1.color[1],sps1.color_b[3],sps1.color_b[2],sps1.color_b[1],sps1.color_a[3],sps1.color_a[2],sps1.color_a[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 (745): * Single equations (assignments): 740 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(3,88.9%), (3,88.9%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007789/0.108, allocations: 0.6029 MB / 444.2 MB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.1082, allocations: 187.8 kB / 444.4 MB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/0.1093, allocations: 0.9392 MB / 445.3 MB, free: 9.504 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/0.1093, allocations: 16 kB / 445.3 MB, free: 9.488 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1093, allocations: 8 kB / 445.3 MB, free: 9.48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.1093, allocations: 3.984 kB / 445.3 MB, free: 9.477 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003951/0.1133, allocations: 3.596 MB / 448.9 MB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.1133, allocations: 0 / 448.9 MB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005672/0.1138, allocations: 247.7 kB / 449.2 MB, free: 5.551 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005653/0.1144, allocations: 299.6 kB / 449.5 MB, free: 5.246 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.287e-05/0.1145, allocations: 24 kB / 449.5 MB, free: 5.223 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.1145, allocations: 12 kB / 449.5 MB, free: 5.211 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1145, allocations: 4 kB / 449.5 MB, free: 5.207 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/0.1164, allocations: 1.742 MB / 451.3 MB, free: 3.402 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/0.1166, allocations: 245.9 kB / 451.5 MB, free: 3.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.1168, allocations: 35.98 kB / 451.5 MB, free: 3.125 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000391/0.1172, allocations: 28 kB / 451.6 MB, free: 3.098 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.1173, allocations: 100.8 kB / 451.7 MB, free: 3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.469e-05/0.1173, allocations: 32 kB / 451.7 MB, free: 2.969 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006704/0.118, allocations: 0.9347 MB / 452.6 MB, free: 2.027 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/0.118, allocations: 3.938 kB / 452.6 MB, free: 2.023 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001958/0.12, allocations: 0.8397 MB / 453.5 MB, free: 1.184 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (sps1.s_damper,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b,prismatic1.s,prismatic1.v) * 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 (143): * Single equations (assignments): 138 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(3,88.9%), (3,88.9%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002391/0.1202, allocations: 148.1 kB / 453.6 MB, free: 1.031 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.1414/0.2616, allocations: 2.44 MB / 456 MB, free: 127.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0004264/0.2621, allocations: 92.78 kB / 456.1 MB, free: 127.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001257/0.2633, allocations: 0.5482 MB / 456.7 MB, free: 127.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001875/0.2652, allocations: 286.8 kB / 457 MB, free: 127.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009522/0.2747, allocations: 6.974 MB / 463.9 MB, free: 124.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009509/0.2757, allocations: 1.08 MB / 465 MB, free: 124.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001184/0.2769, allocations: 453.5 kB / 465.5 MB, free: 124.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005691/0.2774, allocations: 486.7 kB / 465.9 MB, free: 124.1 MB / 426.7 MB Notification: Performance of SimCode: time 2.435e-06/0.2774, allocations: 0 / 465.9 MB, free: 124.1 MB / 426.7 MB Notification: Performance of Templates: time 0.03464/0.3121, allocations: 23.38 MB / 489.3 MB, free: 104.1 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/SpringDamperSeries/SpringDamperSeries.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: 4.055331447627395]