Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001566/0.001566, allocations: 186.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.11/2.11, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001124/0.001125, allocations: 94.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2897/0.2897, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004686/0.0004688, allocations: 11.98 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1202, allocations: 58.86 MB / 490.3 MB, free: 9.238 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.4091/0.5293, allocations: 56.7 MB / 0.5342 GB, free: 9.781 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03737/0.5668, allocations: 13.02 MB / 0.5469 GB, free: 7.863 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01522/0.582, allocations: 280.4 kB / 0.5472 GB, free: 7.82 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01115/0.5933, allocations: 2.821 MB / 0.5499 GB, free: 6.746 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03317/0.6265, allocations: 8.089 MB / 0.5578 GB, free: 2.734 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005044/0.6316, allocations: 0.6336 MB / 0.5585 GB, free: 2.336 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006729/0.6383, allocations: 2.511 MB / 0.5609 GB, free: 0.832 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01264/0.651, allocations: 5.975 MB / 0.5667 GB, free: 13.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003377/0.6545, allocations: 1.203 MB / 0.5679 GB, free: 12.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004079/0.6586, allocations: 1.606 MB / 0.5695 GB, free: 11.19 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001259/0.6599, allocations: 176 kB / 0.5697 GB, free: 11.02 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003338/0.6633, allocations: 0.7881 MB / 0.5704 GB, free: 10.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003496/0.6668, allocations: 1.843 MB / 0.5722 GB, free: 8.379 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002113/0.669, allocations: 1.002 MB / 0.5732 GB, free: 7.367 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01156/0.6806, allocations: 6.652 MB / 0.5797 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.6807, allocations: 0 / 0.5797 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.6807, allocations: 0 / 0.5797 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002963/0.681, allocations: 0 / 0.5797 GB, free: 0.6992 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.03307/0.7141, allocations: 5.558 MB / 0.5851 GB, free: 11.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.071e-05/0.7142, allocations: 12.03 kB / 0.5851 GB, free: 11.05 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003184/0.7174, allocations: 0.8842 MB / 0.586 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01488/0.7323, allocations: 2.337 MB / 0.5883 GB, free: 7.809 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009077/0.7414, allocations: 2.926 MB / 0.5911 GB, free: 4.824 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004447/0.7419, allocations: 303.9 kB / 0.5914 GB, free: 4.523 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002052/0.744, allocations: 407.7 kB / 0.5918 GB, free: 4.125 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04192/0.7859, allocations: 13 MB / 0.6045 GB, free: 6.383 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002753/0.7863, allocations: 43.59 kB / 0.6046 GB, free: 6.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001818/0.7881, allocations: 191.8 kB / 0.6047 GB, free: 6.152 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008479/0.7966, allocations: 2.382 MB / 0.6071 GB, free: 3.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04276/0.8394, allocations: 11.93 MB / 0.6187 GB, free: 7.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1296/0.9691, allocations: 48.13 MB / 0.6657 GB, free: 6.539 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03639/1.006, allocations: 5.837 MB / 0.6714 GB, free: 0.5586 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001809/1.007, allocations: 0.7026 MB / 0.6721 GB, free: 15.75 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.442e-05/1.008, allocations: 51.88 kB / 0.6722 GB, free: 15.69 MB / 490.7 MB Notification: Performance of pre-optimization done (n=224): time 8.646e-06/1.008, allocations: 4.109 kB / 0.6722 GB, free: 15.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=255): time 0.1532/1.161, allocations: 29.25 MB / 0.7007 GB, free: 2.234 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/1.161, allocations: 158.5 kB / 0.7009 GB, free: 2.051 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01148/1.172, allocations: 4.628 MB / 0.7054 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008519/1.173, allocations: 65.7 kB / 0.7055 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00392/1.177, allocations: 3.436 MB / 0.7088 GB, free: 9.855 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002029/1.179, allocations: 0.9561 MB / 0.7097 GB, free: 8.887 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001014/1.18, allocations: 136 kB / 0.7099 GB, free: 8.754 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006703/1.181, allocations: 0.5961 MB / 0.7105 GB, free: 8.148 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01029/1.191, allocations: 3.425 MB / 0.7138 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3481/1.54, allocations: 7.33 MB / 0.721 GB, free: 177.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0137/1.553, allocations: 4.893 MB / 0.7257 GB, free: 176.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002647/1.554, allocations: 39.38 kB / 0.7258 GB, free: 176.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=892) (initialization): time 0.03712/1.591, allocations: 11.56 MB / 0.7371 GB, free: 172.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001682/1.591, allocations: 65.03 kB / 0.7371 GB, free: 172.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002729/1.591, allocations: 137.5 kB / 0.7373 GB, free: 172.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005145/1.596, allocations: 1.144 MB / 0.7384 GB, free: 172.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01245/1.609, allocations: 1.784 MB / 0.7401 GB, free: 172.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01289/1.622, allocations: 6.118 MB / 0.7461 GB, free: 169.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008946/1.631, allocations: 422.3 kB / 0.7465 GB, free: 169.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001867/1.633, allocations: 461.4 kB / 0.7469 GB, free: 169 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 630 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (853): * Single equations (assignments): 849 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00718/1.64, allocations: 2.427 MB / 0.7493 GB, free: 167.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/1.641, allocations: 411.9 kB / 0.7497 GB, free: 167.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01935/1.661, allocations: 6.579 MB / 0.7561 GB, free: 165.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.433e-05/1.661, allocations: 32.14 kB / 0.7562 GB, free: 165.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.821e-05/1.661, allocations: 3.375 kB / 0.7562 GB, free: 165.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.737e-05/1.661, allocations: 14.38 kB / 0.7562 GB, free: 165.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0374/1.698, allocations: 13.69 MB / 0.7695 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.684e-05/1.698, allocations: 4 kB / 0.7695 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006043/1.705, allocations: 0.6087 MB / 0.7701 GB, free: 152.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004451/1.709, allocations: 0.9431 MB / 0.7711 GB, free: 151.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008763/1.71, allocations: 92.75 kB / 0.7711 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01111/1.721, allocations: 5.84 MB / 0.7768 GB, free: 145.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/1.721, allocations: 5.375 kB / 0.7769 GB, free: 145.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02613/1.747, allocations: 11.52 MB / 0.7881 GB, free: 134 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003436/1.751, allocations: 0.9573 MB / 0.789 GB, free: 133 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00161/1.752, allocations: 47.98 kB / 0.7891 GB, free: 133 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005074/1.758, allocations: 184.9 kB / 0.7893 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001288/1.759, allocations: 205.6 kB / 0.7895 GB, free: 132.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006017/1.76, allocations: 113.2 kB / 0.7896 GB, free: 132.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006551/1.766, allocations: 2.917 MB / 0.7924 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.81e-07/1.766, allocations: 0 / 0.7924 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008606/1.775, allocations: 1.28 MB / 0.7937 GB, free: 128.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.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 (230): * Single equations (assignments): 226 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02831/1.803, allocations: 12.98 MB / 0.8063 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01884/1.822, allocations: 8.088 MB / 0.8142 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/1.822, allocations: 0 / 0.8142 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007749/1.83, allocations: 3.197 MB / 0.8174 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004124/1.834, allocations: 461 kB / 0.8178 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5436/2.378, allocations: 143.5 MB / 0.958 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008013/2.386, allocations: 3.915 MB / 0.9618 GB, free: 144.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006841/2.393, allocations: 2.494 MB / 0.9642 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of SimCode: time 2.064e-06/2.393, allocations: 0 / 0.9642 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.011/7.404, allocations: 125.3 MB / 1.087 GB, free: 20.31 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1)