Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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.Revolute,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001664/0.00167, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001995/0.001995, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2289/0.2289, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB 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.002342/0.002342, allocations: 75.88 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3739/0.3762, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01491/0.3912, allocations: 12.28 MB / 0.5426 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.402, allocations: 3.928 MB / 0.5464 GB, free: 0.707 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003336/0.4054, allocations: 61.72 kB / 0.5465 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003647/0.4091, allocations: 1.319 MB / 0.5478 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005313/0.4145, allocations: 1.712 MB / 0.5495 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.4162, allocations: 0.4951 MB / 0.5499 GB, free: 13.85 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00618/0.4224, allocations: 3.61 MB / 0.5535 GB, free: 10.23 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003598/0.4261, allocations: 2.001 MB / 0.5554 GB, free: 8.195 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002703/0.4288, allocations: 1.195 MB / 0.5566 GB, free: 6.996 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003308/0.4322, allocations: 1.709 MB / 0.5583 GB, free: 5.281 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001258/0.4335, allocations: 236 kB / 0.5585 GB, free: 5.051 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003233/0.4368, allocations: 0.9322 MB / 0.5594 GB, free: 4.117 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002684/0.4395, allocations: 1.578 MB / 0.5609 GB, free: 2.535 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003323/0.4428, allocations: 1.879 MB / 0.5628 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008926/0.4518, allocations: 6.208 MB / 0.5688 GB, free: 10.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.088e-05/0.4519, allocations: 0 / 0.5688 GB, free: 10.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4519, allocations: 3.938 kB / 0.5688 GB, free: 10.41 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000225/0.4521, allocations: 4 kB / 0.5688 GB, free: 10.41 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01091/0.463, allocations: 4.253 MB / 0.573 GB, free: 6.078 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.4631, allocations: 8.031 kB / 0.573 GB, free: 6.07 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001532/0.4646, allocations: 0.7083 MB / 0.5737 GB, free: 5.352 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01113/0.4758, allocations: 3.11 MB / 0.5767 GB, free: 2.234 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004614/0.4804, allocations: 2.096 MB / 0.5788 GB, free: 92 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000222/0.4807, allocations: 189.1 kB / 0.579 GB, free: 15.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001032/0.4817, allocations: 255.7 kB / 0.5792 GB, free: 15.65 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01936/0.5011, allocations: 10.48 MB / 0.5894 GB, free: 4.738 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001194/0.5013, allocations: 27.75 kB / 0.5895 GB, free: 4.711 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007631/0.5021, allocations: 123.8 kB / 0.5896 GB, free: 4.59 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004876/0.507, allocations: 2.553 MB / 0.5921 GB, free: 2.031 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02133/0.5283, allocations: 9.919 MB / 0.6018 GB, free: 8.098 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06216/0.5905, allocations: 34.35 MB / 0.6353 GB, free: 4.926 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/0.6012, allocations: 5.174 MB / 0.6404 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003638/0.6049, allocations: 2.296 MB / 0.6426 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002039/0.6069, allocations: 1.884 MB / 0.6444 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.747e-05/0.6071, allocations: 56.56 kB / 0.6445 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=229): time 6.482e-06/0.6071, allocations: 0 / 0.6445 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of matching and sorting (n=235): time 0.04003/0.6471, allocations: 14.06 MB / 0.6582 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.211e-05/0.6472, allocations: 73.41 kB / 0.6583 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005453/0.6527, allocations: 2.636 MB / 0.6609 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005032/0.6533, allocations: 53.7 kB / 0.6609 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002693/0.656, allocations: 2.745 MB / 0.6636 GB, free: 7.266 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001508/0.6575, allocations: 0.8913 MB / 0.6645 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003139/0.6607, allocations: 1.045 MB / 0.6655 GB, free: 5.312 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.6609, allocations: 305.1 kB / 0.6658 GB, free: 5.012 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004306/0.6652, allocations: 2.2 MB / 0.6679 GB, free: 2.805 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007467/0.6727, allocations: 5.059 MB / 0.6729 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0118/0.6845, allocations: 7.953 MB / 0.6806 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001258/0.6847, allocations: 28 kB / 0.6807 GB, free: 2.957 MB / 0.5294 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01823/0.703, allocations: 7.885 MB / 0.6884 GB, free: 11.06 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001637/0.7032, allocations: 48 kB / 0.6884 GB, free: 11.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002439/0.7034, allocations: 104.1 kB / 0.6885 GB, free: 10.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002736/0.7062, allocations: 0.7888 MB / 0.6893 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004528/0.7108, allocations: 1.181 MB / 0.6904 GB, free: 8.934 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007295/0.7181, allocations: 4.516 MB / 0.6948 GB, free: 4.281 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003893/0.722, allocations: 295.8 kB / 0.6951 GB, free: 3.992 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001188/0.7233, allocations: 300 kB / 0.6954 GB, free: 3.699 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (631): * Single equations (assignments): 624 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004691/0.728, allocations: 2.024 MB / 0.6974 GB, free: 1.664 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008076/0.7288, allocations: 274.1 kB / 0.6976 GB, free: 1.395 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/0.7395, allocations: 4.729 MB / 0.7023 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001028/0.7396, allocations: 40 kB / 0.7023 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.419e-05/0.7397, allocations: 7.938 kB / 0.7023 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.232e-05/0.7397, allocations: 11.95 kB / 0.7023 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02416/0.7639, allocations: 10.5 MB / 0.7126 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.384e-05/0.764, allocations: 8 kB / 0.7126 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001825/0.7658, allocations: 367.5 kB / 0.7129 GB, free: 1.543 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002249/0.7681, allocations: 0.6483 MB / 0.7136 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004166/0.7685, allocations: 43.98 kB / 0.7136 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005841/0.7744, allocations: 3.907 MB / 0.7174 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.19e-05/0.7744, allocations: 11.94 kB / 0.7174 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/0.7875, allocations: 7.153 MB / 0.7244 GB, free: 5.523 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007813/0.7884, allocations: 323.2 kB / 0.7247 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008236/0.7892, allocations: 40 kB / 0.7248 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001854/0.7911, allocations: 135.8 kB / 0.7249 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005967/0.7917, allocations: 141 kB / 0.725 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003552/0.7921, allocations: 67.98 kB / 0.7251 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003431/0.7955, allocations: 1.627 MB / 0.7267 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.91e-07/0.7956, allocations: 0 / 0.7267 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005243/0.8008, allocations: 0.9023 MB / 0.7276 GB, free: 2.27 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2791/1.08, allocations: 7.801 MB / 0.7352 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00894/1.089, allocations: 5.38 MB / 0.7404 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/1.089, allocations: 0 / 0.7404 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002725/1.092, allocations: 2.022 MB / 0.7424 GB, free: 173.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002237/1.094, allocations: 355.3 kB / 0.7427 GB, free: 173.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05374/1.148, allocations: 39.68 MB / 0.7815 GB, free: 138.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00353/1.151, allocations: 3.165 MB / 0.7846 GB, free: 135.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003611/1.155, allocations: 1.957 MB / 0.7865 GB, free: 133.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002329/1.157, allocations: 1.71 MB / 0.7882 GB, free: 131.7 MB / 0.5762 GB Notification: Performance of SimCode: time 9.61e-07/1.157, allocations: 0 / 0.7882 GB, free: 131.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08966/1.247, allocations: 54.43 MB / 0.8413 GB, free: 77.51 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.27/22.51, allocations: 7.984 kB / 0.8413 GB, free: 77.5 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1)