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.001749/0.001749, allocations: 118.8 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.001981/0.001981, allocations: 198 kB / 18.73 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.462/1.462, allocations: 227.4 MB / 247 MB, free: 10.43 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.2445/0.2445, allocations: 46.12 MB / 344.4 MB, free: 11.44 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.002319/0.002319, allocations: 87.83 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.359, allocations: 62.43 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.01379/0.3728, allocations: 10.24 MB / 0.5406 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009572/0.3825, allocations: 3.798 MB / 0.5443 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002417/0.385, allocations: 58.84 kB / 0.5444 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004793/0.3898, allocations: 1.934 MB / 0.5463 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006182/0.3961, allocations: 1.63 MB / 0.5479 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002253/0.3983, allocations: 0.6091 MB / 0.5485 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006662/0.405, allocations: 3.365 MB / 0.5517 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004301/0.4094, allocations: 2.575 MB / 0.5543 GB, free: 9.398 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002835/0.4123, allocations: 1.238 MB / 0.5555 GB, free: 8.156 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003072/0.4154, allocations: 1.666 MB / 0.5571 GB, free: 6.484 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.4164, allocations: 255.9 kB / 0.5573 GB, free: 6.234 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002786/0.4192, allocations: 1.014 MB / 0.5583 GB, free: 5.219 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002061/0.4213, allocations: 1.547 MB / 0.5598 GB, free: 3.668 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003202/0.4246, allocations: 1.813 MB / 0.5616 GB, free: 1.844 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008726/0.4333, allocations: 5.812 MB / 0.5673 GB, free: 12.01 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.4334, allocations: 0 / 0.5673 GB, free: 12.01 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4334, allocations: 3.938 kB / 0.5673 GB, free: 12 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002014/0.4336, allocations: 0 / 0.5673 GB, free: 12 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.009624/0.4432, allocations: 4.121 MB / 0.5713 GB, free: 7.809 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/0.4433, allocations: 12.03 kB / 0.5713 GB, free: 7.797 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001238/0.4446, allocations: 0.6042 MB / 0.5719 GB, free: 7.184 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006808/0.4514, allocations: 1.812 MB / 0.5737 GB, free: 5.367 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004805/0.4562, allocations: 2.155 MB / 0.5758 GB, free: 3.152 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.4565, allocations: 197 kB / 0.576 GB, free: 2.957 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008875/0.4574, allocations: 251.8 kB / 0.5762 GB, free: 2.711 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01692/0.4743, allocations: 8.455 MB / 0.5845 GB, free: 9.586 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000159/0.4745, allocations: 43.67 kB / 0.5845 GB, free: 9.543 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007694/0.4753, allocations: 127.9 kB / 0.5846 GB, free: 9.418 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003308/0.4786, allocations: 1.695 MB / 0.5863 GB, free: 7.719 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0153/0.494, allocations: 7.11 MB / 0.5932 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04841/0.5424, allocations: 34.07 MB / 0.6265 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008077/0.5506, allocations: 3.304 MB / 0.6297 GB, free: 10.07 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002231/0.5528, allocations: 1.462 MB / 0.6312 GB, free: 8.598 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007587/0.5605, allocations: 4.454 MB / 0.6355 GB, free: 3.926 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.216e-05/0.5606, allocations: 55 kB / 0.6356 GB, free: 3.863 MB / 494.1 MB Notification: Performance of pre-optimization done (n=121): time 5.58e-06/0.5606, allocations: 0 / 0.6356 GB, free: 3.863 MB / 494.1 MB Notification: Performance of matching and sorting (n=129): time 0.03136/0.592, allocations: 11.75 MB / 0.647 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.5921, allocations: 170.9 kB / 0.6472 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00626/0.5984, allocations: 3.73 MB / 0.6508 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002732/0.5987, allocations: 41.7 kB / 0.6509 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002481/0.6012, allocations: 2.862 MB / 0.6537 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007723/0.602, allocations: 0.5506 MB / 0.6542 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001939/0.604, allocations: 1.084 MB / 0.6553 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.6041, allocations: 305.1 kB / 0.6556 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002882/0.607, allocations: 1.701 MB / 0.6572 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006115/0.6131, allocations: 5.123 MB / 0.6622 GB, free: 6.609 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009991/0.6232, allocations: 7.413 MB / 0.6695 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001101/0.6233, allocations: 36 kB / 0.6695 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01344/0.6367, allocations: 6.713 MB / 0.6761 GB, free: 6.734 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.6369, allocations: 66.16 kB / 0.6761 GB, free: 6.672 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001945/0.6371, allocations: 124 kB / 0.6762 GB, free: 6.551 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007748/0.6379, allocations: 316.7 kB / 0.6765 GB, free: 6.238 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004271/0.6422, allocations: 1.244 MB / 0.6778 GB, free: 4.992 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003187/0.6454, allocations: 2.494 MB / 0.6802 GB, free: 2.359 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004425/0.6499, allocations: 291.6 kB / 0.6805 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001016/0.6509, allocations: 328 kB / 0.6808 GB, free: 1.754 MB / 0.5294 GB 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.003943/0.6549, allocations: 1.795 MB / 0.6825 GB, free: 15.94 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008673/0.6558, allocations: 325.8 kB / 0.6828 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005452/0.6613, allocations: 2.378 MB / 0.6852 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.427e-05/0.6613, allocations: 16 kB / 0.6852 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.6614, allocations: 4 kB / 0.6852 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.612e-05/0.6614, allocations: 3.984 kB / 0.6852 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01484/0.6762, allocations: 5.906 MB / 0.691 GB, free: 7.234 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.81e-05/0.6763, allocations: 7.938 kB / 0.691 GB, free: 7.227 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009243/0.6773, allocations: 179.7 kB / 0.6911 GB, free: 7.051 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002278/0.6795, allocations: 0.7147 MB / 0.6918 GB, free: 6.332 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001853/0.6798, allocations: 16 kB / 0.6918 GB, free: 6.316 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006723/0.6865, allocations: 4.828 MB / 0.6966 GB, free: 1.344 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.6865, allocations: 0 / 0.6966 GB, free: 1.344 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008027/0.6946, allocations: 4.359 MB / 0.7008 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000999/0.6956, allocations: 378.8 kB / 0.7012 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007542/0.6964, allocations: 31.92 kB / 0.7012 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/0.6979, allocations: 67.91 kB / 0.7013 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003449/0.6983, allocations: 68.5 kB / 0.7013 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/0.6985, allocations: 39.94 kB / 0.7014 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004943/0.7034, allocations: 2.327 MB / 0.7037 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.6e-07/0.7035, allocations: 0 / 0.7037 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005089/0.7086, allocations: 0.7968 MB / 0.7044 GB, free: 9.246 MB / 0.5606 GB 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.008879/0.7175, allocations: 4.995 MB / 0.7093 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00753/0.7251, allocations: 4.037 MB / 0.7132 GB, free: 196 kB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/0.7251, allocations: 0 / 0.7132 GB, free: 196 kB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002023/0.7272, allocations: 1.112 MB / 0.7143 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003374/0.7306, allocations: 402.1 kB / 0.7147 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3366/1.067, allocations: 37.72 MB / 0.7516 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002857/1.07, allocations: 2.787 MB / 0.7543 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003639/1.074, allocations: 1.659 MB / 0.7559 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002225/1.076, allocations: 1.522 MB / 0.7574 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of SimCode: time 6.91e-07/1.076, allocations: 0 / 0.7574 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09759/1.174, allocations: 57.56 MB / 0.8136 GB, free: 99.21 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.09/25.27, allocations: 8.297 kB / 0.8136 GB, free: 99.2 MB / 0.5762 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)