Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.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.0008771/0.0008771, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0008579/0.0008579, allocations: 170 kB / 23.95 MB, free: 0.6133 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.8777/0.8777, allocations: 177.1 MB / 204.2 MB, free: 5.723 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.2679/0.2679, allocations: 32.8 MB / 293.5 MB, free: 1.234 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 439.6 MB, free: 4.254 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.91e-05/2.073e-05, allocations: 8.188 kB / 439.6 MB, free: 4.246 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.2068/0.2068, allocations: 12.77 MB / 452.4 MB, free: 39.51 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.008428/0.2152, allocations: 4.82 MB / 457.2 MB, free: 36.41 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002359/0.2176, allocations: 121.8 kB / 457.3 MB, free: 36.37 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004325/0.2219, allocations: 4.248 MB / 461.5 MB, free: 34.55 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005063/0.227, allocations: 2.458 MB / 464 MB, free: 33.34 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001954/0.2289, allocations: 1.182 MB / 465.2 MB, free: 32.79 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.007813/0.2367, allocations: 8.232 MB / 473.4 MB, free: 29.7 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005653/0.2424, allocations: 4.798 MB / 478.2 MB, free: 27.63 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007005/0.2494, allocations: 3.515 MB / 481.7 MB, free: 26.09 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00553/0.2549, allocations: 3.43 MB / 485.2 MB, free: 25.18 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001856/0.2568, allocations: 0.5012 MB / 485.7 MB, free: 25.18 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003248/0.26, allocations: 1.327 MB / 487 MB, free: 24.98 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003585/0.2636, allocations: 2.948 MB / 489.9 MB, free: 23.71 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007199/0.2708, allocations: 1.999 MB / 491.9 MB, free: 22.71 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01747/0.2883, allocations: 10.28 MB / 0.4905 GB, free: 17.68 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.2883, allocations: 5.438 kB / 0.4905 GB, free: 17.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2883, allocations: 0 / 0.4905 GB, free: 17.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005404/0.2888, allocations: 0 / 0.4905 GB, free: 17.67 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.0239/0.3127, allocations: 7.351 MB / 0.4976 GB, free: 12.64 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.55e-05/0.3128, allocations: 9.719 kB / 0.4976 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003022/0.3158, allocations: 0.9252 MB / 0.4986 GB, free: 11.99 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07197/0.3878, allocations: 12.97 MB / 0.5112 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01123/0.399, allocations: 4.506 MB / 0.5156 GB, free: 12.19 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002363/0.3992, allocations: 328.8 kB / 0.5159 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001814/0.401, allocations: 444.1 kB / 0.5164 GB, free: 11.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02209/0.4231, allocations: 13.12 MB / 0.5292 GB, free: 13.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002329/0.4234, allocations: 71.47 kB / 0.5292 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008073/0.4242, allocations: 199.8 kB / 0.5294 GB, free: 13.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002728/0.4269, allocations: 2.539 MB / 0.5319 GB, free: 10.59 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01769/0.4446, allocations: 11.09 MB / 0.5427 GB, free: 15.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05731/0.5019, allocations: 49.46 MB / 0.591 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008698/0.5106, allocations: 5.031 MB / 0.596 GB, free: 7.746 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002987/0.5136, allocations: 3.117 MB / 0.599 GB, free: 4.621 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003516/0.5139, allocations: 242.3 kB / 0.5992 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.829e-05/0.514, allocations: 60.55 kB / 0.5993 GB, free: 4.316 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 6.332e-06/0.514, allocations: 0 / 0.5993 GB, free: 4.316 MB / 0.4948 GB Notification: Performance of matching and sorting (n=315): time 0.06494/0.5789, allocations: 35.95 MB / 0.6344 GB, free: 372 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.579, allocations: 265.3 kB / 0.6346 GB, free: 48 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2221/0.8012, allocations: 5.951 MB / 0.6405 GB, free: 154.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001184/0.8024, allocations: 75.67 kB / 0.6405 GB, free: 154.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002056/0.8044, allocations: 4.028 MB / 0.6445 GB, free: 151.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001967/0.8064, allocations: 1.2 MB / 0.6456 GB, free: 150.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002168/0.8086, allocations: 1.51 MB / 0.6471 GB, free: 150.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 4.475e-05/0.8086, allocations: 304.3 kB / 0.6474 GB, free: 149.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0033/0.8119, allocations: 3.404 MB / 0.6507 GB, free: 148.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005028/0.8169, allocations: 7.667 MB / 0.6582 GB, free: 141.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01068/0.8276, allocations: 11.85 MB / 0.6698 GB, free: 133 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001402/0.8278, allocations: 41.06 kB / 0.6698 GB, free: 133 MB / 0.5261 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02306/0.8508, allocations: 12.72 MB / 0.6822 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.8509, allocations: 69.5 kB / 0.6823 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002801/0.8512, allocations: 146.1 kB / 0.6825 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004351/0.8556, allocations: 2.245 MB / 0.6846 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005002/0.8606, allocations: 1.722 MB / 0.6863 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01404/0.8746, allocations: 16.12 MB / 0.7021 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007763/0.8824, allocations: 0.5303 MB / 0.7026 GB, free: 119 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001834/0.8842, allocations: 453.5 kB / 0.703 GB, free: 118.9 MB / 0.5261 GB 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 (906): * Single equations (assignments): 901 * 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.006186/0.8904, allocations: 2.74 MB / 0.7057 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001973/0.8924, allocations: 0.5116 MB / 0.7062 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009089/0.9014, allocations: 7.269 MB / 0.7133 GB, free: 110 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.93e-05/0.9015, allocations: 36 kB / 0.7133 GB, free: 110 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.699e-05/0.9015, allocations: 12 kB / 0.7133 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.363e-05/0.9015, allocations: 15.61 kB / 0.7134 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02191/0.9234, allocations: 15.4 MB / 0.7284 GB, free: 97.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/0.9235, allocations: 4 kB / 0.7284 GB, free: 97.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/0.9248, allocations: 0.4968 MB / 0.7289 GB, free: 96.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002931/0.9278, allocations: 2.007 MB / 0.7308 GB, free: 95.12 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004168/0.9282, allocations: 64 kB / 0.7309 GB, free: 95.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01187/0.94, allocations: 14.65 MB / 0.7452 GB, free: 80.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.94, allocations: 8 kB / 0.7452 GB, free: 80.18 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01174/0.9518, allocations: 11.66 MB / 0.7566 GB, free: 68.33 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/0.9537, allocations: 0.5627 MB / 0.7571 GB, free: 67.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009845/0.9547, allocations: 63.98 kB / 0.7572 GB, free: 67.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002041/0.9567, allocations: 287.6 kB / 0.7575 GB, free: 67.42 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005396/0.9573, allocations: 213.4 kB / 0.7577 GB, free: 67.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001975/0.9575, allocations: 87.81 kB / 0.7578 GB, free: 67.12 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006227/0.9637, allocations: 3.696 MB / 0.7614 GB, free: 63.45 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.51e-07/0.9637, allocations: 0 / 0.7614 GB, free: 63.45 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008226/0.9719, allocations: 1.668 MB / 0.763 GB, free: 61.78 MB / 0.5261 GB 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 {(7,17,46.9%), (7,17,46.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01251/0.9844, allocations: 12.36 MB / 0.7751 GB, free: 49.21 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009713/0.9941, allocations: 8.122 MB / 0.783 GB, free: 41.09 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.629e-06/0.9941, allocations: 0 / 0.783 GB, free: 41.09 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004764/0.9989, allocations: 3.862 MB / 0.7868 GB, free: 37.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004356/1.003, allocations: 0.7044 MB / 0.7875 GB, free: 36.54 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3042/1.308, allocations: 69.62 MB / 0.8555 GB, free: 171.4 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004945/1.312, allocations: 3.778 MB / 0.8592 GB, free: 171.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004663/1.317, allocations: 2.474 MB / 0.8616 GB, free: 171 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003852/1.321, allocations: 2.727 MB / 0.8642 GB, free: 169 MB / 0.5573 GB Notification: Performance of SimCode: time 1.954e-06/1.321, allocations: 0 / 0.8642 GB, free: 169 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1407/1.462, allocations: 117.5 MB / 0.979 GB, free: 81.91 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/13.83, allocations: 3.281 kB / 0.979 GB, free: 81.91 MB / 0.5573 GB " [Timeout remaining time 646] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.879135037772357] Failed to read output from testmodel.py, exit status != 0: ['time', 'freeMotion.r_rel_a[1]', 'freeMotion.v_rel_a[1]', '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'] 13.961362894624472 13.967838723 13.677921075 Calling exit ...