Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.00133, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.437/1.437, allocations: 227.7 MB / 247.1 MB, free: 10.28 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.00196/0.00196, allocations: 68.86 kB / 307.3 MB, free: 372 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1075, allocations: 50.53 MB / 357.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01101/0.1186, allocations: 7.087 MB / 365 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006694/0.1253, allocations: 3.179 MB / 368.1 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.1265, allocations: 35.88 kB / 368.2 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001858/0.1284, allocations: 0.7859 MB / 369 MB, free: 2.672 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003328/0.1317, allocations: 1.292 MB / 370.3 MB, free: 1.375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.1328, allocations: 495 kB / 370.7 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1779/0.3108, allocations: 2.545 MB / 373.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001616/0.3124, allocations: 1.156 MB / 374.4 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001009/0.3135, allocations: 0.7481 MB / 375.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001244/0.3147, allocations: 1.102 MB / 376.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003157/0.315, allocations: 135.5 kB / 376.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001468/0.3165, allocations: 0.8639 MB / 377.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001035/0.3176, allocations: 0.9781 MB / 378.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009468/0.3185, allocations: 1.185 MB / 379.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004133/0.3227, allocations: 3.753 MB / 383.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3227, allocations: 0 / 383.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3227, allocations: 0 / 383.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.626e-05/0.3228, allocations: 5.062 kB / 383.2 MB, free: 7.746 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.005823/0.3286, allocations: 2.869 MB / 386.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3287, allocations: 9.438 kB / 386.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005853/0.3293, allocations: 452.1 kB / 386.5 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006239/0.3355, allocations: 1.65 MB / 388.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003088/0.3386, allocations: 1.516 MB / 389.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.811e-05/0.3388, allocations: 116.3 kB / 389.8 MB, free: 4.602 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000382/0.3391, allocations: 152.9 kB / 390 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009614/0.3488, allocations: 6.36 MB / 396.3 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.626e-05/0.3489, allocations: 37.36 kB / 396.4 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002727/0.3492, allocations: 83.69 kB / 396.4 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002177/0.3513, allocations: 1.431 MB / 397.9 MB, free: 108 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01139/0.3628, allocations: 5.675 MB / 403.5 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03552/0.3983, allocations: 26.29 MB / 429.8 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004959/0.4033, allocations: 2.267 MB / 432.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00177/0.4051, allocations: 1.018 MB / 433.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.836e-05/0.4052, allocations: 15.91 kB / 433.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.833e-05/0.4053, allocations: 42.56 kB / 433.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 4.649e-06/0.4053, allocations: 3.75 kB / 433.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02338/0.4287, allocations: 8.58 MB / 441.8 MB, free: 4.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.4288, allocations: 144.5 kB / 441.9 MB, free: 3.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004774/0.4336, allocations: 2.823 MB / 444.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002684/0.4339, allocations: 41.7 kB / 444.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001858/0.4358, allocations: 2.064 MB / 446.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000642/0.4364, allocations: 443.2 kB / 447.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001303/0.4377, allocations: 0.8806 MB / 448.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4379, allocations: 305.1 kB / 448.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002483/0.4404, allocations: 1.412 MB / 449.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005229/0.4456, allocations: 4.231 MB / 454.1 MB, free: 6.285 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009563/0.4552, allocations: 6.122 MB / 460.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.988e-05/0.4554, allocations: 28 kB / 460.2 MB, free: 14.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01411/0.4695, allocations: 6.08 MB / 466.3 MB, free: 8.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.989e-05/0.4696, allocations: 48 kB / 466.3 MB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001199/0.4697, allocations: 104 kB / 466.5 MB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002457/0.4722, allocations: 0.7928 MB / 467.2 MB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003395/0.4756, allocations: 0.9902 MB / 468.2 MB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006564/0.4822, allocations: 4.472 MB / 472.7 MB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003688/0.4859, allocations: 255.5 kB / 473 MB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007048/0.4866, allocations: 280 kB / 473.2 MB, free: 1.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[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 (533): * Single equations (assignments): 529 * 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 {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002478/0.4891, allocations: 1.36 MB / 474.6 MB, free: 220 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004642/0.4896, allocations: 229 kB / 474.8 MB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004145/0.4937, allocations: 1.857 MB / 476.7 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-05/0.4938, allocations: 12 kB / 476.7 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/0.4938, allocations: 4 kB / 476.7 MB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.4938, allocations: 7.922 kB / 476.7 MB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009746/0.5036, allocations: 4.815 MB / 481.5 MB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.308e-06/0.5036, allocations: 0 / 481.5 MB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006333/0.5042, allocations: 136.5 kB / 481.6 MB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002105/0.5064, allocations: 0.6444 MB / 482.3 MB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.183e-05/0.5065, allocations: 20 kB / 482.3 MB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005651/0.5121, allocations: 3.954 MB / 486.3 MB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.5121, allocations: 4.031 kB / 486.3 MB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006702/0.5189, allocations: 3.691 MB / 490 MB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007799/0.5197, allocations: 297.9 kB / 490.2 MB, free: 304 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002892/0.52, allocations: 16.06 kB / 490.3 MB, free: 288 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009314/0.5209, allocations: 63.91 kB / 490.3 MB, free: 224 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.5211, allocations: 51.88 kB / 490.4 MB, free: 172 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.081e-05/0.5212, allocations: 35.98 kB / 490.4 MB, free: 136 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003601/0.5248, allocations: 1.754 MB / 492.2 MB, free: 14.37 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.5248, allocations: 0 / 492.2 MB, free: 14.37 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004501/0.5293, allocations: 0.6312 MB / 492.8 MB, free: 13.74 MB / 414.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 (75): * Single equations (assignments): 71 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007353/0.5367, allocations: 4.312 MB / 497.1 MB, free: 9.391 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007319/0.5441, allocations: 3.616 MB / 0.489 GB, free: 5.781 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.5441, allocations: 0 / 0.489 GB, free: 5.781 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.5458, allocations: 0.9368 MB / 0.4899 GB, free: 4.832 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/0.5477, allocations: 265.5 kB / 0.4902 GB, free: 4.578 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05392/0.6016, allocations: 32.35 MB / 0.5217 GB, free: 15.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002479/0.6041, allocations: 2.18 MB / 0.5239 GB, free: 13.04 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003383/0.6075, allocations: 1.392 MB / 0.5252 GB, free: 11.64 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001746/0.6093, allocations: 1.054 MB / 0.5263 GB, free: 10.58 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.6093, allocations: 0 / 0.5263 GB, free: 10.58 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2429/0.8522, allocations: 44.44 MB / 0.5697 GB, free: 146.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.91, allocations: 7.469 kB / 0.5697 GB, free: 146.9 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1)