Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.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.InitializationConversion.Rotor1D,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_InitializationConversion_Rotor1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Rotor1D,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_InitializationConversion_Rotor1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001537/0.001537, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001524/0.001524, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 246.8 MB, free: 10.58 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.2285/0.2285, allocations: 46.11 MB / 344.2 MB, free: 11.57 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.002248/0.002248, allocations: 84.84 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1237, allocations: 62.46 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.InitializationConversion.Rotor1D): time 0.0177/0.1414, allocations: 15.91 MB / 496.1 MB, free: 5.16 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008947/0.1504, allocations: 3.862 MB / 500 MB, free: 1.285 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002563/0.153, allocations: 87.75 kB / 0.4883 GB, free: 1.199 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006588/0.1597, allocations: 3.103 MB / 0.4914 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006199/0.1659, allocations: 1.745 MB / 0.4931 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001504/0.1674, allocations: 463.2 kB / 0.4935 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006613/0.1741, allocations: 4.006 MB / 0.4974 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004808/0.1789, allocations: 3.597 MB / 0.5009 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002767/0.1817, allocations: 1.877 MB / 0.5028 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2171/0.3988, allocations: 2.992 MB / 0.5057 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001853/0.4007, allocations: 496.2 kB / 0.5062 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002857/0.4036, allocations: 0.9389 MB / 0.5071 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002858/0.4065, allocations: 2.232 MB / 0.5093 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005244/0.4117, allocations: 2.773 MB / 0.512 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01371/0.4255, allocations: 8.406 MB / 0.5202 GB, free: 13.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.4255, allocations: 3.281 kB / 0.5202 GB, free: 13.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4256, allocations: 4.031 kB / 0.5202 GB, free: 13.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003315/0.4259, allocations: 0 / 0.5202 GB, free: 13.09 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1705 * Number of variables: 1705 Notification: Performance of Generate backend data structure: time 0.13/0.5559, allocations: 11.18 MB / 0.5311 GB, free: 8.496 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.5559, allocations: 9.562 kB / 0.5311 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003429/0.5594, allocations: 0.8159 MB / 0.5319 GB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008039/0.5674, allocations: 1.864 MB / 0.5337 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007005/0.5744, allocations: 3.271 MB / 0.5369 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003334/0.5748, allocations: 291.4 kB / 0.5372 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00287/0.5777, allocations: 416 kB / 0.5376 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05806/0.6358, allocations: 19.54 MB / 0.5567 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002888/0.6361, allocations: 56.84 kB / 0.5567 GB, free: 3.648 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002755/0.6389, allocations: 179.6 kB / 0.5569 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00656/0.6455, allocations: 2.343 MB / 0.5592 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06196/0.7075, allocations: 22.39 MB / 0.5811 GB, free: 10.98 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08971/0.7972, allocations: 52.52 MB / 0.6324 GB, free: 5.699 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07254/0.8698, allocations: 9.17 MB / 0.6413 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004799/0.8747, allocations: 3.022 MB / 0.6443 GB, free: 9.359 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00197/0.8767, allocations: 363.2 kB / 0.6446 GB, free: 9.023 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.873e-05/0.8768, allocations: 55.16 kB / 0.6447 GB, free: 8.965 MB / 494.1 MB Notification: Performance of pre-optimization done (n=212): time 7.274e-06/0.8768, allocations: 0 / 0.6447 GB, free: 8.965 MB / 494.1 MB Notification: Performance of matching and sorting (n=212): time 0.1464/1.023, allocations: 16.1 MB / 0.6604 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/1.023, allocations: 148.9 kB / 0.6605 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01175/1.035, allocations: 4.689 MB / 0.6651 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000609/1.036, allocations: 57.7 kB / 0.6652 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00392/1.04, allocations: 3.485 MB / 0.6686 GB, free: 440 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001998/1.042, allocations: 0.8428 MB / 0.6694 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005569/1.047, allocations: 1.54 MB / 0.6709 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001582/1.048, allocations: 305.1 kB / 0.6712 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005915/1.053, allocations: 3.168 MB / 0.6743 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01072/1.064, allocations: 7.458 MB / 0.6816 GB, free: 1.043 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01778/1.082, allocations: 11.48 MB / 0.6928 GB, free: 4.039 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002099/1.082, allocations: 47.94 kB / 0.6928 GB, free: 3.992 MB / 0.5294 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.02226/1.105, allocations: 10.6 MB / 0.7032 GB, free: 9.832 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001864/1.105, allocations: 68 kB / 0.7032 GB, free: 9.766 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000265/1.105, allocations: 152.9 kB / 0.7034 GB, free: 9.617 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002565/1.105, allocations: 200 kB / 0.7036 GB, free: 9.422 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007205/1.113, allocations: 1.813 MB / 0.7053 GB, free: 7.605 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000323/1.113, allocations: 298.8 kB / 0.7056 GB, free: 7.312 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007052/1.12, allocations: 0.9312 MB / 0.7065 GB, free: 6.375 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00157/1.122, allocations: 0.5115 MB / 0.707 GB, free: 5.863 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 695 * Number of states: 0 () * Number of discrete variables: 42 (rotor1D10.cylinderColor[3],rotor1D10.cylinderColor[2],rotor1D10.cylinderColor[1],rotor1D9.cylinderColor[3],rotor1D9.cylinderColor[2],rotor1D9.cylinderColor[1],rotor1D8.cylinderColor[3],rotor1D8.cylinderColor[2],rotor1D8.cylinderColor[1],rotor1D7.cylinderColor[3],rotor1D7.cylinderColor[2],rotor1D7.cylinderColor[1],rotor1D6.cylinderColor[3],rotor1D6.cylinderColor[2],rotor1D6.cylinderColor[1],rotor1D5.cylinderColor[3],rotor1D5.cylinderColor[2],rotor1D5.cylinderColor[1],rotor1D4.cylinderColor[3],rotor1D4.cylinderColor[2],rotor1D4.cylinderColor[1],rotor1D3.cylinderColor[3],rotor1D3.cylinderColor[2],rotor1D3.cylinderColor[1],rotor1D2.cylinderColor[3],rotor1D2.cylinderColor[2],rotor1D2.cylinderColor[1],rotor1D1.cylinderColor[3],rotor1D1.cylinderColor[2],rotor1D1.cylinderColor[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 (855): * Single equations (assignments): 852 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006198/1.128, allocations: 2.311 MB / 0.7093 GB, free: 3.539 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00139/1.129, allocations: 402.8 kB / 0.7097 GB, free: 3.141 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2279/1.357, allocations: 4.859 MB / 0.7144 GB, free: 192.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-05/1.357, allocations: 24.53 kB / 0.7144 GB, free: 192.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/1.357, allocations: 1.75 kB / 0.7144 GB, free: 192.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-05/1.357, allocations: 11.17 kB / 0.7145 GB, free: 192.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01915/1.376, allocations: 11.53 MB / 0.7257 GB, free: 190 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-05/1.376, allocations: 9.109 kB / 0.7257 GB, free: 190 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002795/1.379, allocations: 0.597 MB / 0.7263 GB, free: 190 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.021e-05/1.379, allocations: 17 kB / 0.7263 GB, free: 190 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003579/1.38, allocations: 144.9 kB / 0.7265 GB, free: 189.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.49e-05/1.38, allocations: 21.84 kB / 0.7265 GB, free: 189.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-05/1.38, allocations: 12.56 kB / 0.7265 GB, free: 189.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008965/1.389, allocations: 8.911 MB / 0.7352 GB, free: 187.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/1.39, allocations: 0.5045 MB / 0.7357 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006469/1.39, allocations: 51.53 kB / 0.7357 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001946/1.392, allocations: 87.14 kB / 0.7358 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/1.393, allocations: 244.5 kB / 0.7361 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002275/1.393, allocations: 161.4 kB / 0.7362 GB, free: 186.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004217/1.397, allocations: 2.949 MB / 0.7391 GB, free: 185.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.4e-07/1.397, allocations: 0 / 0.7391 GB, free: 185.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007142/1.404, allocations: 1.357 MB / 0.7404 GB, free: 185.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 20 (rotor1D1.phi,rotor1D1.w,rotor1D2.phi,rotor1D2.w,rotor1D3.phi,rotor1D3.w,rotor1D4.phi,rotor1D4.w,rotor1D5.phi,rotor1D5.w,rotor1D6.phi,rotor1D6.w,rotor1D7.phi,rotor1D7.w,rotor1D8.phi,rotor1D8.w,rotor1D9.phi,rotor1D9.w,rotor1D10.phi,rotor1D10.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 (208): * Single equations (assignments): 205 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009282/1.414, allocations: 9.559 MB / 0.7497 GB, free: 178 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01157/1.425, allocations: 8.846 MB / 0.7584 GB, free: 170.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/1.425, allocations: 1.5 kB / 0.7584 GB, free: 170.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002556/1.428, allocations: 2.449 MB / 0.7608 GB, free: 168.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004268/1.432, allocations: 0.5624 MB / 0.7613 GB, free: 167.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08212/1.514, allocations: 67.16 MB / 0.8269 GB, free: 91.79 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005968/1.52, allocations: 3.592 MB / 0.8304 GB, free: 88.17 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006422/1.527, allocations: 2.302 MB / 0.8327 GB, free: 85.86 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005026/1.532, allocations: 2.49 MB / 0.8351 GB, free: 83.37 MB / 0.545 GB Notification: Performance of SimCode: time 8.72e-07/1.532, allocations: 4 kB / 0.8351 GB, free: 83.36 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4212/1.953, allocations: 97.89 MB / 0.9307 GB, free: 191.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/12.57, allocations: 7.016 kB / 0.9307 GB, free: 191.9 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.InitializationConversion.Rotor1D_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_InitializationConversion_Rotor1D_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_InitializationConversion_Rotor1D.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe 2>&1)