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.001304/0.001304, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001302, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.235/0.235, allocations: 46.12 MB / 344.2 MB, free: 11.54 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.003121/0.003121, allocations: 90.38 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1423, allocations: 62.45 MB / 480.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.0128/0.1551, allocations: 10.23 MB / 490.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008086/0.1632, allocations: 3.79 MB / 494.2 MB, free: 7.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001647/0.1649, allocations: 59.81 kB / 494.3 MB, free: 6.961 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003837/0.1688, allocations: 1.942 MB / 496.2 MB, free: 5.012 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004773/0.1736, allocations: 1.622 MB / 497.9 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001854/0.1755, allocations: 0.616 MB / 498.5 MB, free: 2.766 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00538/0.1809, allocations: 3.36 MB / 0.4901 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003737/0.1847, allocations: 2.584 MB / 0.4926 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002258/0.187, allocations: 1.23 MB / 0.4938 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00259/0.1896, allocations: 1.662 MB / 0.4954 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007197/0.1904, allocations: 252 kB / 0.4957 GB, free: 9.613 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002178/0.1926, allocations: 1.014 MB / 0.4967 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001801/0.1944, allocations: 1.543 MB / 0.4982 GB, free: 7.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002171/0.1966, allocations: 1.813 MB / 0.4999 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.24/0.4366, allocations: 5.575 MB / 0.5054 GB, free: 20.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.4366, allocations: 2.844 kB / 0.5054 GB, free: 20.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.4366, allocations: 2.188 kB / 0.5054 GB, free: 20.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002493/0.4369, allocations: 0 / 0.5054 GB, free: 20.25 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.009908/0.4468, allocations: 4.003 MB / 0.5093 GB, free: 18.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.4469, allocations: 13.05 kB / 0.5093 GB, free: 18.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001147/0.448, allocations: 0.6088 MB / 0.5099 GB, free: 18.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007729/0.4558, allocations: 1.784 MB / 0.5116 GB, free: 18.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004884/0.4607, allocations: 2.123 MB / 0.5137 GB, free: 17.83 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001995/0.4609, allocations: 187.8 kB / 0.5139 GB, free: 17.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009408/0.4619, allocations: 260.6 kB / 0.5141 GB, free: 17.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01565/0.4775, allocations: 8.448 MB / 0.5224 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001679/0.4778, allocations: 42.52 kB / 0.5224 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000424/0.4782, allocations: 126.3 kB / 0.5225 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002774/0.481, allocations: 1.701 MB / 0.5242 GB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01441/0.4954, allocations: 7.106 MB / 0.5311 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04312/0.5386, allocations: 34.15 MB / 0.5645 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008452/0.5471, allocations: 3.298 MB / 0.5677 GB, free: 9.746 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002227/0.5494, allocations: 1.465 MB / 0.5692 GB, free: 8.273 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007901/0.5573, allocations: 4.441 MB / 0.5735 GB, free: 3.637 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.896e-05/0.5574, allocations: 45.84 kB / 0.5735 GB, free: 3.586 MB / 414.1 MB Notification: Performance of pre-optimization done (n=121): time 6.412e-06/0.5574, allocations: 0 / 0.5735 GB, free: 3.586 MB / 414.1 MB Notification: Performance of matching and sorting (n=129): time 0.03306/0.5904, allocations: 11.56 MB / 0.5848 GB, free: 7.914 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.5906, allocations: 165.8 kB / 0.585 GB, free: 7.719 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007022/0.5976, allocations: 3.72 MB / 0.5886 GB, free: 4.008 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002952/0.598, allocations: 50.25 kB / 0.5887 GB, free: 3.957 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002473/0.6004, allocations: 2.753 MB / 0.5914 GB, free: 1.219 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007183/0.6012, allocations: 0.5216 MB / 0.5919 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001901/0.6031, allocations: 1.074 MB / 0.5929 GB, free: 15.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.6032, allocations: 309.1 kB / 0.5932 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002764/0.606, allocations: 1.697 MB / 0.5949 GB, free: 13.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005618/0.6116, allocations: 5.123 MB / 0.5999 GB, free: 6.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00945/0.6211, allocations: 7.416 MB / 0.6071 GB, free: 14.19 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001284/0.6213, allocations: 36 kB / 0.6071 GB, free: 14.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01443/0.6357, allocations: 6.704 MB / 0.6137 GB, free: 7.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001631/0.636, allocations: 56 kB / 0.6137 GB, free: 7.516 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002212/0.6362, allocations: 123.9 kB / 0.6139 GB, free: 7.395 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007466/0.6369, allocations: 328.9 kB / 0.6142 GB, free: 7.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004275/0.6412, allocations: 1.236 MB / 0.6154 GB, free: 5.832 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003054/0.6443, allocations: 2.501 MB / 0.6178 GB, free: 3.188 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003968/0.6483, allocations: 287.7 kB / 0.6181 GB, free: 2.906 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008546/0.6492, allocations: 331.1 kB / 0.6184 GB, free: 2.586 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.003385/0.6526, allocations: 1.787 MB / 0.6202 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007315/0.6533, allocations: 312 kB / 0.6205 GB, free: 488 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005426/0.6588, allocations: 2.376 MB / 0.6228 GB, free: 14.09 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.602e-05/0.6588, allocations: 16 kB / 0.6228 GB, free: 14.08 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.528e-05/0.6588, allocations: 8 kB / 0.6228 GB, free: 14.07 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.952e-05/0.6589, allocations: 12.02 kB / 0.6228 GB, free: 14.06 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01353/0.6724, allocations: 5.922 MB / 0.6286 GB, free: 8.098 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-05/0.6725, allocations: 0 / 0.6286 GB, free: 8.098 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009496/0.6734, allocations: 183.8 kB / 0.6288 GB, free: 7.918 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002314/0.6758, allocations: 0.7178 MB / 0.6295 GB, free: 7.199 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001526/0.6759, allocations: 22.89 kB / 0.6295 GB, free: 7.18 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006651/0.6826, allocations: 4.813 MB / 0.6342 GB, free: 2.234 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/0.6826, allocations: 4 kB / 0.6342 GB, free: 2.23 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007699/0.6903, allocations: 4.341 MB / 0.6384 GB, free: 13.86 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009635/0.6913, allocations: 364.8 kB / 0.6388 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006546/0.692, allocations: 24 kB / 0.6388 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/0.6934, allocations: 70.56 kB / 0.6389 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/0.6937, allocations: 72.56 kB / 0.6389 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/0.6938, allocations: 43.92 kB / 0.639 GB, free: 13.28 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004374/0.6982, allocations: 2.315 MB / 0.6412 GB, free: 10.98 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6982, allocations: 0 / 0.6412 GB, free: 10.98 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005375/0.7036, allocations: 0.8047 MB / 0.642 GB, free: 10.18 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.008878/0.7125, allocations: 4.955 MB / 0.6469 GB, free: 5.184 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008031/0.7206, allocations: 4.425 MB / 0.6512 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/0.7206, allocations: 0 / 0.6512 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001772/0.7224, allocations: 1.115 MB / 0.6523 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002986/0.7254, allocations: 403 kB / 0.6527 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09826/0.8237, allocations: 42.22 MB / 0.6939 GB, free: 14.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006626/0.8304, allocations: 2.781 MB / 0.6966 GB, free: 11.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00783/0.8383, allocations: 1.664 MB / 0.6982 GB, free: 9.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004669/0.843, allocations: 1.522 MB / 0.6997 GB, free: 8.207 MB / 0.545 GB Notification: Performance of SimCode: time 2.043e-06/0.843, allocations: 0 / 0.6997 GB, free: 8.207 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3291/1.172, allocations: 61.1 MB / 0.7594 GB, free: 167.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.9, allocations: 11.19 kB / 0.7594 GB, free: 167.3 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1)