Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.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.001297/0.001297, allocations: 109.4 kB / 19.8 MB, free: 2.516 MB / 14.72 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.001459/0.001459, allocations: 218 kB / 23 MB, free: 5.609 MB / 14.72 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 1.468/1.468, allocations: 230.2 MB / 256.2 MB, free: 8.699 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2372/0.2372, allocations: 46.89 MB / 359.4 MB, free: 4.934 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002326/0.002326, allocations: 83.86 kB / 0.4941 GB, free: 9.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.336, allocations: 65.99 MB / 0.5586 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02095/0.357, allocations: 18.24 MB / 0.5764 GB, free: 2.863 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01332/0.3703, allocations: 5.327 MB / 0.5816 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003726/0.374, allocations: 111.7 kB / 0.5817 GB, free: 13.41 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006626/0.3806, allocations: 3.102 MB / 0.5847 GB, free: 10.29 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006928/0.3876, allocations: 2.614 MB / 0.5873 GB, free: 7.672 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002596/0.3902, allocations: 1.022 MB / 0.5883 GB, free: 6.648 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01096/0.4011, allocations: 7.675 MB / 0.5958 GB, free: 14.96 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005278/0.4064, allocations: 3.275 MB / 0.599 GB, free: 11.64 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005321/0.4117, allocations: 2.258 MB / 0.6012 GB, free: 9.371 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005689/0.4174, allocations: 3.52 MB / 0.6046 GB, free: 5.84 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001416/0.4188, allocations: 452 kB / 0.6051 GB, free: 5.398 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003869/0.4227, allocations: 1.334 MB / 0.6064 GB, free: 4.062 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003721/0.4264, allocations: 2.871 MB / 0.6092 GB, free: 1.184 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005328/0.4318, allocations: 3.223 MB / 0.6123 GB, free: 13.94 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01542/0.4472, allocations: 10.08 MB / 0.6222 GB, free: 3.82 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.467e-06/0.4472, allocations: 4 kB / 0.6222 GB, free: 3.816 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4472, allocations: 0 / 0.6222 GB, free: 3.816 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000388/0.4476, allocations: 0 / 0.6222 GB, free: 3.816 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02322/0.4708, allocations: 7.51 MB / 0.6295 GB, free: 12.21 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.916e-05/0.4708, allocations: 12.03 kB / 0.6295 GB, free: 12.2 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002853/0.4737, allocations: 1.01 MB / 0.6305 GB, free: 11.18 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03065/0.5043, allocations: 5.652 MB / 0.636 GB, free: 5.52 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01099/0.5153, allocations: 4.894 MB / 0.6408 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000312/0.5156, allocations: 320.4 kB / 0.6411 GB, free: 256 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001701/0.5173, allocations: 435.7 kB / 0.6415 GB, free: 15.82 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03388/0.5512, allocations: 15.51 MB / 0.6567 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002542/0.5515, allocations: 75.42 kB / 0.6567 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00145/0.5529, allocations: 195.8 kB / 0.6569 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006988/0.5599, allocations: 3.384 MB / 0.6602 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03443/0.5944, allocations: 14.69 MB / 0.6746 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1008/0.6951, allocations: 54.86 MB / 0.7281 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3467/1.042, allocations: 7.81 MB / 0.7358 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005921/1.048, allocations: 4.401 MB / 0.7401 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001635/1.049, allocations: 2.215 MB / 0.7422 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.791e-05/1.049, allocations: 67.8 kB / 0.7423 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 7.554e-06/1.049, allocations: 0 / 0.7423 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.09435/1.144, allocations: 39.65 MB / 0.781 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.336e-05/1.144, allocations: 116 kB / 0.7811 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005921/1.15, allocations: 4.32 MB / 0.7853 GB, free: 116.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009279/1.151, allocations: 81.7 kB / 0.7854 GB, free: 116.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002095/1.153, allocations: 3.965 MB / 0.7893 GB, free: 112.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001905/1.155, allocations: 1.556 MB / 0.7908 GB, free: 111.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00205/1.157, allocations: 1.532 MB / 0.7923 GB, free: 109.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.332e-05/1.157, allocations: 301.1 kB / 0.7926 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005192/1.162, allocations: 3.946 MB / 0.7965 GB, free: 105.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006539/1.169, allocations: 7.69 MB / 0.804 GB, free: 95.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01282/1.181, allocations: 12.65 MB / 0.8163 GB, free: 81.43 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/1.181, allocations: 36 kB / 0.8164 GB, free: 81.39 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02545/1.207, allocations: 14.17 MB / 0.8302 GB, free: 67.18 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001437/1.207, allocations: 60 kB / 0.8302 GB, free: 67.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002297/1.207, allocations: 135.7 kB / 0.8304 GB, free: 66.99 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007365/1.215, allocations: 2.671 MB / 0.833 GB, free: 64.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006271/1.221, allocations: 1.755 MB / 0.8347 GB, free: 62.55 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01768/1.239, allocations: 15.23 MB / 0.8496 GB, free: 47.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006142/1.245, allocations: 0.4912 MB / 0.8501 GB, free: 46.56 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001371/1.246, allocations: 423.9 kB / 0.8505 GB, free: 46.15 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (911): * Single equations (assignments): 903 * Array equations: 6 * 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 {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005402/1.251, allocations: 2.865 MB / 0.8533 GB, free: 43.27 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001295/1.253, allocations: 488.8 kB / 0.8537 GB, free: 42.79 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01675/1.27, allocations: 10.53 MB / 0.864 GB, free: 32.21 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.128e-05/1.27, allocations: 63.98 kB / 0.8641 GB, free: 32.14 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.731e-05/1.27, allocations: 8 kB / 0.8641 GB, free: 32.14 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.443e-05/1.27, allocations: 16.06 kB / 0.8641 GB, free: 32.12 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03117/1.301, allocations: 21.21 MB / 0.8848 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.137e-05/1.301, allocations: 8 kB / 0.8848 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003299/1.304, allocations: 0.6825 MB / 0.8855 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006948/1.311, allocations: 2.483 MB / 0.8879 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009636/1.312, allocations: 76 kB / 0.888 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01874/1.331, allocations: 13.83 MB / 0.9015 GB, free: 9.352 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.651e-05/1.331, allocations: 23.88 kB / 0.9015 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02951/1.36, allocations: 15.1 MB / 0.9162 GB, free: 9.957 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001781/1.362, allocations: 0.5135 MB / 0.9167 GB, free: 9.422 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001102/1.363, allocations: 72.12 kB / 0.9168 GB, free: 9.352 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002822/1.366, allocations: 311.5 kB / 0.9171 GB, free: 9.047 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008199/1.367, allocations: 265.9 kB / 0.9174 GB, free: 8.785 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003266/1.367, allocations: 111.3 kB / 0.9175 GB, free: 8.68 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005124/1.372, allocations: 2.71 MB / 0.9201 GB, free: 5.969 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.61e-07/1.372, allocations: 0 / 0.9201 GB, free: 5.969 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009158/1.381, allocations: 1.609 MB / 0.9217 GB, free: 4.359 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * Array equations: 6 * 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 {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03014/1.412, allocations: 15.82 MB / 0.9371 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0189/1.431, allocations: 9.435 MB / 0.9464 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-05/1.431, allocations: 6 kB / 0.9464 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.008448/1.439, allocations: 4.014 MB / 0.9503 GB, free: 6.777 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007113/1.446, allocations: 0.7322 MB / 0.951 GB, free: 6.051 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4124/1.859, allocations: 70.3 MB / 1.02 GB, free: 214.8 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004071/1.863, allocations: 4.539 MB / 1.024 GB, free: 210.2 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.005099/1.868, allocations: 2.722 MB / 1.027 GB, free: 207.5 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003458/1.871, allocations: 2.823 MB / 1.029 GB, free: 204.6 MB / 0.6544 GB Notification: Performance of SimCode: time 9.62e-07/1.871, allocations: 0 / 1.029 GB, free: 204.6 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2088/2.08, allocations: 114.7 MB / 1.141 GB, free: 90.52 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.66/23.74, allocations: 11.38 kB / 1.141 GB, free: 90.51 MB / 0.6544 GB " [Timeout remaining time 636] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.125712198001565] Failed to read output from testmodel.py, exit status != 0: ['time', 'revolute.phi', 'revolute.w', 'revolute1.phi', 'revolute2.phi', 'revolute2.w', 'revolute3.phi', 'revolute3.w'] 23.895302399992943 23.911357786 23.460489341 Calling exit ...