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.001465/0.001465, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001795/0.001795, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 227.4 MB / 247 MB, free: 10.41 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.2464/0.2464, allocations: 46.12 MB / 344.4 MB, free: 11.46 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.002333/0.002333, allocations: 75.88 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.4152, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.InitializationConversion.Rotor1D): time 0.0224/0.4377, allocations: 15.92 MB / 0.5461 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01183/0.4496, allocations: 3.857 MB / 0.5499 GB, free: 13.71 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005241/0.4549, allocations: 88.38 kB / 0.55 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008041/0.463, allocations: 3.106 MB / 0.553 GB, free: 10.68 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006848/0.4699, allocations: 1.749 MB / 0.5547 GB, free: 8.922 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002058/0.472, allocations: 455.3 kB / 0.5552 GB, free: 8.477 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008052/0.4801, allocations: 4.002 MB / 0.5591 GB, free: 4.461 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006169/0.4864, allocations: 3.604 MB / 0.5626 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004095/0.4905, allocations: 1.881 MB / 0.5644 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005883/0.4964, allocations: 2.999 MB / 0.5674 GB, free: 11.9 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002184/0.4987, allocations: 496 kB / 0.5678 GB, free: 11.42 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003901/0.5026, allocations: 0.9405 MB / 0.5687 GB, free: 10.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004054/0.5067, allocations: 2.229 MB / 0.5709 GB, free: 8.242 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006089/0.5128, allocations: 2.785 MB / 0.5736 GB, free: 5.441 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01402/0.5269, allocations: 8.704 MB / 0.5821 GB, free: 12.71 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.527, allocations: 0 / 0.5821 GB, free: 12.71 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.527, allocations: 0 / 0.5821 GB, free: 12.71 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003572/0.5273, allocations: 0 / 0.5821 GB, free: 12.71 MB / 446.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.09097/0.6183, allocations: 11.33 MB / 0.5932 GB, free: 1.273 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.173e-05/0.6184, allocations: 8.031 kB / 0.5932 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003851/0.6223, allocations: 0.8142 MB / 0.594 GB, free: 452 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00867/0.631, allocations: 1.892 MB / 0.5959 GB, free: 14.54 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00798/0.639, allocations: 3.33 MB / 0.5991 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003345/0.6394, allocations: 295.5 kB / 0.5994 GB, free: 10.86 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002615/0.642, allocations: 411.7 kB / 0.5998 GB, free: 10.46 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0583/0.7003, allocations: 19.55 MB / 0.6189 GB, free: 6.191 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002302/0.7006, allocations: 47.62 kB / 0.6189 GB, free: 6.145 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002214/0.7028, allocations: 183.9 kB / 0.6191 GB, free: 5.965 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006474/0.7093, allocations: 2.345 MB / 0.6214 GB, free: 3.613 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.059/0.7684, allocations: 22.39 MB / 0.6433 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08899/0.8575, allocations: 52.46 MB / 0.6945 GB, free: 7.395 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07115/0.9287, allocations: 9.168 MB / 0.7034 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005165/0.9339, allocations: 3.024 MB / 0.7064 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001982/0.9359, allocations: 360.6 kB / 0.7067 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.871e-05/0.936, allocations: 51.88 kB / 0.7068 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=212): time 5.761e-06/0.936, allocations: 0 / 0.7068 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of matching and sorting (n=212): time 0.4141/1.35, allocations: 16.11 MB / 0.7225 GB, free: 163.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.483e-05/1.35, allocations: 155.9 kB / 0.7227 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009757/1.36, allocations: 4.709 MB / 0.7273 GB, free: 162 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006238/1.361, allocations: 53.61 kB / 0.7273 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002473/1.363, allocations: 3.619 MB / 0.7308 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001343/1.365, allocations: 0.8764 MB / 0.7317 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002355/1.367, allocations: 1.551 MB / 0.7332 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.638e-05/1.367, allocations: 308.8 kB / 0.7335 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003606/1.371, allocations: 3.175 MB / 0.7366 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005716/1.376, allocations: 7.458 MB / 0.7439 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/1.387, allocations: 11.48 MB / 0.7551 GB, free: 140.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001482/1.387, allocations: 48.81 kB / 0.7551 GB, free: 140.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.0171/1.404, allocations: 10.63 MB / 0.7655 GB, free: 129.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000118/1.404, allocations: 68 kB / 0.7656 GB, free: 129.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002101/1.404, allocations: 156.7 kB / 0.7657 GB, free: 129.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/1.404, allocations: 200 kB / 0.7659 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00618/1.411, allocations: 1.797 MB / 0.7677 GB, free: 127.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002137/1.411, allocations: 306.8 kB / 0.768 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007704/1.419, allocations: 0.9486 MB / 0.7689 GB, free: 126.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001686/1.42, allocations: 0.5228 MB / 0.7694 GB, free: 125.9 MB / 0.5606 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.004209/1.424, allocations: 2.309 MB / 0.7717 GB, free: 123.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001069/1.426, allocations: 433 kB / 0.7721 GB, free: 123.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005848/1.431, allocations: 4.857 MB / 0.7768 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-05/1.432, allocations: 24 kB / 0.7769 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/1.432, allocations: 0 / 0.7769 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.763e-05/1.432, allocations: 19.95 kB / 0.7769 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01668/1.448, allocations: 11.52 MB / 0.7881 GB, free: 106.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.492e-05/1.448, allocations: 12.16 kB / 0.7881 GB, free: 106.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002721/1.451, allocations: 0.5967 MB / 0.7887 GB, free: 106 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.977e-05/1.451, allocations: 19.94 kB / 0.7887 GB, free: 106 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003856/1.452, allocations: 147.8 kB / 0.7889 GB, free: 105.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.716e-05/1.452, allocations: 19.94 kB / 0.7889 GB, free: 105.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/1.452, allocations: 11.94 kB / 0.7889 GB, free: 105.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008646/1.46, allocations: 8.922 MB / 0.7976 GB, free: 96.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/1.462, allocations: 0.5291 MB / 0.7981 GB, free: 96.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001142/1.463, allocations: 47.28 kB / 0.7982 GB, free: 96.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002669/1.465, allocations: 87.91 kB / 0.7983 GB, free: 96.12 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005927/1.466, allocations: 232.8 kB / 0.7985 GB, free: 95.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003144/1.466, allocations: 171.7 kB / 0.7986 GB, free: 95.72 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004759/1.471, allocations: 2.95 MB / 0.8015 GB, free: 92.77 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.81e-07/1.471, allocations: 0 / 0.8015 GB, free: 92.77 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006518/1.478, allocations: 1.368 MB / 0.8029 GB, free: 91.4 MB / 0.5606 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.009408/1.487, allocations: 9.588 MB / 0.8122 GB, free: 81.68 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008732/1.496, allocations: 7.129 MB / 0.8192 GB, free: 74.59 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.538e-05/1.496, allocations: 5.688 kB / 0.8192 GB, free: 74.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002685/1.499, allocations: 2.435 MB / 0.8216 GB, free: 72.15 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00418/1.503, allocations: 0.572 MB / 0.8221 GB, free: 71.61 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0792/1.582, allocations: 59.92 MB / 0.8807 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004623/1.587, allocations: 3.587 MB / 0.8842 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00614/1.593, allocations: 2.306 MB / 0.8864 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00515/1.598, allocations: 2.498 MB / 0.8888 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of SimCode: time 1.172e-06/1.598, allocations: 4 kB / 0.8888 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4645/2.063, allocations: 93.18 MB / 0.9798 GB, free: 201.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.99/21.05, allocations: 9.75 kB / 0.9798 GB, free: 201.3 MB / 0.6231 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)