Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007068/0.007068, allocations: 101.1 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 186.8 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.657/1.657, allocations: 205.1 MB / 222.5 MB, free: 4.492 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 51.58 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1309, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007372/0.1383, allocations: 5.95 MB / 379.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005563/0.1439, allocations: 1.695 MB / 380.8 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.1452, allocations: 27.88 kB / 380.9 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007241/0.146, allocations: 257.4 kB / 381.1 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007638/0.1468, allocations: 221.7 kB / 381.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001349/0.1481, allocations: 0.4993 MB / 381.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001428/0.1496, allocations: 1.391 MB / 383.2 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008504/0.1504, allocations: 0.6285 MB / 383.8 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006158/0.1511, allocations: 482.1 kB / 384.3 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004944/0.1516, allocations: 0.4934 MB / 384.8 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001405/0.1517, allocations: 120 kB / 384.9 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002294/0.1519, allocations: 140 kB / 385.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000209/0.1522, allocations: 271 kB / 385.3 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005152/0.1527, allocations: 0.6022 MB / 385.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001967/0.1547, allocations: 1.615 MB / 387.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.1547, allocations: 7.938 kB / 387.6 MB, free: 2.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.1547, allocations: 0 / 387.6 MB, free: 2.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.948e-05/0.1547, allocations: 0 / 387.6 MB, free: 2.844 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.003059/0.1578, allocations: 1.458 MB / 389 MB, free: 1.332 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.84e-05/0.1579, allocations: 8.031 kB / 389 MB, free: 1.324 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003204/0.1582, allocations: 142.2 kB / 389.2 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/0.16, allocations: 0.7588 MB / 389.9 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.1601, allocations: 90.41 kB / 390 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002665/0.1604, allocations: 119.9 kB / 390.1 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003326/0.1637, allocations: 1.26 MB / 391.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.922e-05/0.1638, allocations: 7.938 kB / 391.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000207/0.1641, allocations: 51.98 kB / 391.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-05/0.1642, allocations: 32 kB / 391.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002738/0.1669, allocations: 0.6929 MB / 392.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01064/0.1776, allocations: 6.781 MB / 398.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.1787, allocations: 261.6 kB / 399.2 MB, free: 6.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00055/0.1792, allocations: 185.6 kB / 399.4 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002146/0.1795, allocations: 85.09 kB / 399.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.1795, allocations: 34.56 kB / 399.5 MB, free: 6.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 4.729e-06/0.1795, allocations: 4 kB / 399.5 MB, free: 6.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.003949/0.1835, allocations: 1.392 MB / 400.9 MB, free: 4.727 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.385e-05/0.1836, allocations: 85.11 kB / 401 MB, free: 4.625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.1848, allocations: 0.6607 MB / 401.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.686e-05/0.1848, allocations: 33.7 kB / 401.7 MB, free: 3.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007486/0.1856, allocations: 0.672 MB / 402.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.1857, allocations: 122.4 kB / 402.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002879/0.186, allocations: 142.4 kB / 402.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003018/0.1863, allocations: 386.8 kB / 403 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004578/0.1868, allocations: 145.9 kB / 403.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009174/0.1878, allocations: 0.5546 MB / 403.7 MB, free: 1.68 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.002244/0.19, allocations: 0.958 MB / 404.6 MB, free: 496 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.449e-05/0.1901, allocations: 4 kB / 404.6 MB, free: 492 kB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002528/0.1926, allocations: 0.7872 MB / 405.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.227e-05/0.1927, allocations: 12 kB / 405.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.428e-05/0.1927, allocations: 16 kB / 405.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004809/0.1932, allocations: 90.17 kB / 405.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.1943, allocations: 183.7 kB / 405.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00463/0.1989, allocations: 3.32 MB / 409 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008669/0.1998, allocations: 28 kB / 409.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.586e-05/0.1999, allocations: 40 kB / 409.1 MB, free: 11.71 MB / 350.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009137/0.2009, allocations: 289.3 kB / 409.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002621/0.2011, allocations: 75.06 kB / 409.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000242/0.2014, allocations: 74.47 kB / 409.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.2014, allocations: 4 kB / 409.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/0.2014, allocations: 4 kB / 409.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.2015, allocations: 0 / 409.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003533/0.205, allocations: 1.255 MB / 410.8 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.205, allocations: 0 / 410.8 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006076/0.2057, allocations: 71.83 kB / 410.9 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003213/0.206, allocations: 53.69 kB / 410.9 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.351e-05/0.2061, allocations: 8 kB / 410.9 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003831/0.2099, allocations: 3.049 MB / 414 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/0.2099, allocations: 4.031 kB / 414 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001671/0.2116, allocations: 0.6468 MB / 414.6 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00028/0.2119, allocations: 144.2 kB / 414.8 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.2121, allocations: 8 kB / 414.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005426/0.2126, allocations: 15.98 kB / 414.8 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.2128, allocations: 31.84 kB / 414.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.946e-05/0.2128, allocations: 8 kB / 414.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001158/0.214, allocations: 443 kB / 415.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.214, allocations: 0 / 415.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001865/0.2159, allocations: 156 kB / 415.4 MB, free: 4.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * 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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002534/0.2162, allocations: 115.2 kB / 415.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002094/0.2183, allocations: 0.6407 MB / 416.2 MB, free: 4.195 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.2183, allocations: 0 / 416.2 MB, free: 4.195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008032/0.2191, allocations: 357.1 kB / 416.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009875/0.2201, allocations: 75.98 kB / 416.6 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00596/0.2261, allocations: 1.822 MB / 418.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001382/0.2275, allocations: 1.031 MB / 419.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005244/0.2281, allocations: 86.02 kB / 419.5 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.2283, allocations: 55.42 kB / 419.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of SimCode: time 1.673e-06/0.2283, allocations: 4 kB / 419.6 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of Templates: time 0.02635/0.2547, allocations: 5.574 MB / 425.2 MB, free: 11.11 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1)