Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.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.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001662/0.001662, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002004/0.002004, allocations: 208.6 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.469/1.469, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2345/0.2345, allocations: 46.11 MB / 344.2 MB, free: 11.5 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.0022/0.0022, allocations: 82.89 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1219, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.01276/0.1347, allocations: 10.23 MB / 490.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008106/0.1429, allocations: 3.81 MB / 494.2 MB, free: 7.043 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00199/0.145, allocations: 59.81 kB / 494.3 MB, free: 6.984 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004034/0.1491, allocations: 1.931 MB / 496.2 MB, free: 5.047 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004469/0.1535, allocations: 1.626 MB / 497.9 MB, free: 3.414 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001597/0.1552, allocations: 0.616 MB / 498.5 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005395/0.1606, allocations: 3.373 MB / 0.4901 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003557/0.1642, allocations: 2.568 MB / 0.4926 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002169/0.1664, allocations: 1.23 MB / 0.4938 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002706/0.1691, allocations: 1.662 MB / 0.4954 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007162/0.1698, allocations: 252 kB / 0.4957 GB, free: 9.648 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002274/0.1721, allocations: 1.022 MB / 0.4967 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00173/0.1739, allocations: 1.535 MB / 0.4982 GB, free: 7.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002566/0.1764, allocations: 1.817 MB / 0.4999 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2364/0.4129, allocations: 5.575 MB / 0.5054 GB, free: 20.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.4129, allocations: 0.5 kB / 0.5054 GB, free: 20.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4129, allocations: 0.7188 kB / 0.5054 GB, free: 20.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00023/0.4131, allocations: 0 / 0.5054 GB, free: 20.27 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.01039/0.4235, allocations: 4.006 MB / 0.5093 GB, free: 18.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.4236, allocations: 9.625 kB / 0.5093 GB, free: 18.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001055/0.4247, allocations: 0.6114 MB / 0.5099 GB, free: 18.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006999/0.4317, allocations: 1.784 MB / 0.5116 GB, free: 18.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005447/0.4372, allocations: 2.122 MB / 0.5137 GB, free: 17.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002532/0.4374, allocations: 189.7 kB / 0.5139 GB, free: 17.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001142/0.4386, allocations: 259.3 kB / 0.5141 GB, free: 17.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.016/0.4546, allocations: 8.451 MB / 0.5224 GB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/0.4547, allocations: 38.11 kB / 0.5224 GB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003667/0.4551, allocations: 127.5 kB / 0.5226 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002653/0.4578, allocations: 1.695 MB / 0.5242 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01237/0.4702, allocations: 7.114 MB / 0.5312 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04211/0.5123, allocations: 34.16 MB / 0.5645 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01205/0.5244, allocations: 3.293 MB / 0.5677 GB, free: 9.785 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003385/0.5278, allocations: 1.463 MB / 0.5692 GB, free: 8.312 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009583/0.5374, allocations: 4.446 MB / 0.5735 GB, free: 3.668 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.941e-05/0.5376, allocations: 45.66 kB / 0.5735 GB, free: 3.617 MB / 414.1 MB Notification: Performance of pre-optimization done (n=121): time 4.659e-06/0.5376, allocations: 0.875 kB / 0.5735 GB, free: 3.617 MB / 414.1 MB Notification: Performance of matching and sorting (n=129): time 0.04753/0.5851, allocations: 11.56 MB / 0.5848 GB, free: 7.953 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.5853, allocations: 168.8 kB / 0.585 GB, free: 7.754 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008846/0.5942, allocations: 3.722 MB / 0.5886 GB, free: 4.043 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003078/0.5945, allocations: 41.7 kB / 0.5887 GB, free: 3.996 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003297/0.5978, allocations: 2.752 MB / 0.5914 GB, free: 1.258 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001021/0.5989, allocations: 0.5254 MB / 0.5919 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002712/0.6016, allocations: 1.07 MB / 0.5929 GB, free: 15.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002596/0.6019, allocations: 305.1 kB / 0.5932 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004176/0.606, allocations: 1.701 MB / 0.5949 GB, free: 13.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00728/0.6133, allocations: 5.121 MB / 0.5999 GB, free: 6.863 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009399/0.6228, allocations: 7.418 MB / 0.6071 GB, free: 14.23 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001137/0.6229, allocations: 37.42 kB / 0.6071 GB, free: 14.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01277/0.6357, allocations: 6.701 MB / 0.6137 GB, free: 7.621 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.6358, allocations: 60 kB / 0.6137 GB, free: 7.562 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002033/0.6361, allocations: 127.9 kB / 0.6139 GB, free: 7.438 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007399/0.6368, allocations: 316.7 kB / 0.6142 GB, free: 7.125 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004033/0.6409, allocations: 1.248 MB / 0.6154 GB, free: 5.875 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002995/0.6439, allocations: 2.492 MB / 0.6178 GB, free: 3.242 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003457/0.6473, allocations: 291.6 kB / 0.6181 GB, free: 2.957 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006/0.6479, allocations: 332 kB / 0.6184 GB, free: 2.633 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (664): * Single equations (assignments): 660 * Array equations: 3 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002913/0.6509, allocations: 1.783 MB / 0.6202 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006576/0.6515, allocations: 308 kB / 0.6205 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005128/0.6567, allocations: 2.385 MB / 0.6228 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.342e-05/0.6567, allocations: 15.52 kB / 0.6228 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.6567, allocations: 5.422 kB / 0.6228 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/0.6568, allocations: 7.984 kB / 0.6228 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01374/0.6705, allocations: 5.926 MB / 0.6286 GB, free: 8.148 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/0.6706, allocations: 0 / 0.6286 GB, free: 8.148 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000897/0.6715, allocations: 177.2 kB / 0.6288 GB, free: 7.977 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002295/0.6738, allocations: 0.7186 MB / 0.6295 GB, free: 7.254 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001303/0.6739, allocations: 27.98 kB / 0.6295 GB, free: 7.227 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006883/0.6808, allocations: 4.819 MB / 0.6342 GB, free: 2.281 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.6808, allocations: 0 / 0.6342 GB, free: 2.281 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007698/0.6885, allocations: 4.335 MB / 0.6384 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009361/0.6895, allocations: 368.8 kB / 0.6388 GB, free: 13.53 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006414/0.6902, allocations: 16 kB / 0.6388 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/0.6916, allocations: 79.89 kB / 0.6389 GB, free: 13.44 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002247/0.6919, allocations: 72.44 kB / 0.6389 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.867e-05/0.692, allocations: 39.19 kB / 0.639 GB, free: 13.33 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004603/0.6966, allocations: 2.323 MB / 0.6412 GB, free: 11.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6966, allocations: 0 / 0.6412 GB, free: 11.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005139/0.7018, allocations: 0.8008 MB / 0.642 GB, free: 10.22 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (96): * Single equations (assignments): 92 * Array equations: 3 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008739/0.7105, allocations: 4.959 MB / 0.6469 GB, free: 5.227 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00838/0.7189, allocations: 4.42 MB / 0.6512 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/0.719, allocations: 0 / 0.6512 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002134/0.7211, allocations: 1.112 MB / 0.6523 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003735/0.7249, allocations: 403.7 kB / 0.6527 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.075/0.7999, allocations: 42.22 MB / 0.6939 GB, free: 14.25 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00512/0.8051, allocations: 2.787 MB / 0.6966 GB, free: 11.44 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004539/0.8097, allocations: 1.656 MB / 0.6982 GB, free: 9.781 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002666/0.8124, allocations: 1.522 MB / 0.6997 GB, free: 8.258 MB / 0.545 GB Notification: Performance of SimCode: time 9.42e-07/0.8124, allocations: 0 / 0.6997 GB, free: 8.258 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3013/1.114, allocations: 61.11 MB / 0.7594 GB, free: 167.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.73, allocations: 6.562 kB / 0.7594 GB, free: 167.4 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevoluteInitialization_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1)