Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.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.0009792/0.0009792, allocations: 91.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.0009852/0.0009852, allocations: 156.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.9457/0.9457, allocations: 177 MB / 204.8 MB, free: 5.238 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.2558/0.2558, allocations: 34.86 MB / 296.3 MB, free: 492 kB / 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.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|freeMotion.r_rel_a.[0-9,]+.|freeMotion.v_rel_a.[0-9,]+.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|freeMotion.r_rel_a.[0-9,]+.|freeMotion.v_rel_a.[0-9,]+.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 378.8 MB, free: 2.051 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.286e-05/3.512e-05, allocations: 2.875 kB / 378.8 MB, free: 2.047 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01752/0.01756, allocations: 14.2 MB / 393 MB, free: 3.781 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01357/0.03113, allocations: 4.933 MB / 397.9 MB, free: 14.83 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003384/0.03451, allocations: 123.3 kB / 398 MB, free: 14.71 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005759/0.04027, allocations: 4.455 MB / 402.5 MB, free: 10.24 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006007/0.04628, allocations: 2.472 MB / 405 MB, free: 7.758 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002088/0.04836, allocations: 1.189 MB / 406.2 MB, free: 6.566 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008201/0.05656, allocations: 8.238 MB / 414.4 MB, free: 14.31 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005165/0.06173, allocations: 4.959 MB / 419.3 MB, free: 9.285 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005287/0.06702, allocations: 3.536 MB / 422.9 MB, free: 5.742 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004645/0.07166, allocations: 3.527 MB / 426.4 MB, free: 2.207 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001647/0.07331, allocations: 0.5 MB / 426.9 MB, free: 1.707 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003107/0.07642, allocations: 1.326 MB / 428.2 MB, free: 388 kB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002864/0.07928, allocations: 2.961 MB / 431.2 MB, free: 13.41 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002584/0.08186, allocations: 1.885 MB / 433.1 MB, free: 11.52 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007412/0.08928, allocations: 6.314 MB / 439.4 MB, free: 5.184 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.08928, allocations: 0 / 439.4 MB, free: 5.184 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.08928, allocations: 0 / 439.4 MB, free: 5.184 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001982/0.08948, allocations: 4 kB / 439.4 MB, free: 5.18 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.188/0.2775, allocations: 7.497 MB / 446.9 MB, free: 92.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.2775, allocations: 11.91 kB / 446.9 MB, free: 92.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01318/0.2907, allocations: 3.963 MB / 450.9 MB, free: 92.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006426/0.2971, allocations: 3.965 MB / 454.8 MB, free: 92.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001857/0.2973, allocations: 322.7 kB / 455.2 MB, free: 91.97 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007164/0.298, allocations: 447.2 kB / 455.6 MB, free: 91.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01069/0.3087, allocations: 8.001 MB / 463.6 MB, free: 87.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/0.3088, allocations: 61.19 kB / 463.7 MB, free: 87.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003494/0.3092, allocations: 201.8 kB / 463.8 MB, free: 87.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002374/0.3116, allocations: 2.527 MB / 466.4 MB, free: 86.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009856/0.3214, allocations: 4.426 MB / 470.8 MB, free: 85.92 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04368/0.3651, allocations: 55.09 MB / 0.5136 GB, free: 41.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00677/0.3719, allocations: 2.745 MB / 0.5162 GB, free: 39.56 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001611/0.3735, allocations: 1.007 MB / 0.5172 GB, free: 38.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003423/0.3738, allocations: 230.5 kB / 0.5174 GB, free: 38.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.3739, allocations: 67.33 kB / 0.5175 GB, free: 38.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=245): time 5.43e-06/0.3739, allocations: 0 / 0.5175 GB, free: 38.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=315): time 0.04561/0.4195, allocations: 24.49 MB / 0.5414 GB, free: 14.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.819e-05/0.4196, allocations: 265.3 kB / 0.5417 GB, free: 14.42 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004349/0.4239, allocations: 4.351 MB / 0.5459 GB, free: 10.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006434/0.4245, allocations: 69.7 kB / 0.546 GB, free: 9.965 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001544/0.4261, allocations: 4.221 MB / 0.5501 GB, free: 5.777 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001123/0.4272, allocations: 1.263 MB / 0.5514 GB, free: 4.531 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001425/0.4286, allocations: 1.703 MB / 0.553 GB, free: 2.816 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.726e-05/0.4287, allocations: 476.8 kB / 0.5535 GB, free: 2.348 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001685/0.4304, allocations: 1.116 MB / 0.5546 GB, free: 1.227 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004639/0.435, allocations: 7.39 MB / 0.5618 GB, free: 7.027 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008909/0.4439, allocations: 9.246 MB / 0.5708 GB, free: 11.03 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001598/0.4441, allocations: 44 kB / 0.5709 GB, free: 10.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.01698/0.4611, allocations: 8.227 MB / 0.5789 GB, free: 2.707 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.626e-05/0.4612, allocations: 64 kB / 0.5789 GB, free: 2.645 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003244/0.4615, allocations: 144 kB / 0.5791 GB, free: 2.504 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004124/0.4656, allocations: 1.761 MB / 0.5808 GB, free: 0.7383 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004202/0.4698, allocations: 1.782 MB / 0.5825 GB, free: 14.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/0.4809, allocations: 8.306 MB / 0.5907 GB, free: 6.418 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005679/0.4866, allocations: 0.5536 MB / 0.5912 GB, free: 5.867 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001052/0.4876, allocations: 451.9 kB / 0.5916 GB, free: 5.426 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (948): * Single equations (assignments): 943 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002364/0.49, allocations: 0.7675 MB / 0.5924 GB, free: 4.645 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00121/0.4912, allocations: 0.5322 MB / 0.5929 GB, free: 4.109 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008336/0.4995, allocations: 3.933 MB / 0.5967 GB, free: 112 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-05/0.4996, allocations: 32 kB / 0.5968 GB, free: 80 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.571e-05/0.4996, allocations: 12 kB / 0.5968 GB, free: 68 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.788e-05/0.4997, allocations: 15.94 kB / 0.5968 GB, free: 52 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02095/0.5206, allocations: 10.28 MB / 0.6068 GB, free: 5.672 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.005e-05/0.5206, allocations: 4 kB / 0.6068 GB, free: 5.668 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00197/0.5226, allocations: 0.4915 MB / 0.6073 GB, free: 5.176 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004716/0.5273, allocations: 1.536 MB / 0.6088 GB, free: 3.633 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003113/0.5276, allocations: 59.98 kB / 0.6089 GB, free: 3.574 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2393/0.7669, allocations: 7.023 MB / 0.6157 GB, free: 129.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/0.7669, allocations: 15.45 kB / 0.6157 GB, free: 129.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008978/0.7759, allocations: 5.464 MB / 0.6211 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/0.7772, allocations: 472.7 kB / 0.6215 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005204/0.7777, allocations: 62.38 kB / 0.6216 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/0.7793, allocations: 299.9 kB / 0.6219 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004595/0.7797, allocations: 214.1 kB / 0.6221 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001725/0.7799, allocations: 86.88 kB / 0.6222 GB, free: 128.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002871/0.7828, allocations: 1.942 MB / 0.6241 GB, free: 128.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 7e-08/0.7828, allocations: 0 / 0.6241 GB, free: 128.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006905/0.7897, allocations: 1.707 MB / 0.6257 GB, free: 128.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000705/0.7904, allocations: 233.9 kB / 0.626 GB, free: 128.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007298/0.7977, allocations: 4.891 MB / 0.6307 GB, free: 127.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/0.7977, allocations: 3 kB / 0.6307 GB, free: 127.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002339/0.8, allocations: 1.899 MB / 0.6326 GB, free: 127 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/0.8031, allocations: 0.6097 MB / 0.6332 GB, free: 127 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01835/0.8215, allocations: 11.58 MB / 0.6445 GB, free: 122.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002631/0.8241, allocations: 1.739 MB / 0.6462 GB, free: 122.4 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004272/0.8284, allocations: 2.003 MB / 0.6481 GB, free: 122.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/0.8296, allocations: 333.9 kB / 0.6485 GB, free: 122.2 MB / 474.7 MB Notification: Performance of SimCode: time 3.216e-06/0.8297, allocations: 0 / 0.6485 GB, free: 122.2 MB / 474.7 MB Notification: Performance of Templates: time 0.07545/0.9051, allocations: 64.02 MB / 0.711 GB, free: 73.25 MB / 474.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.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.245727573055774]