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.009139/0.009139, allocations: 100.6 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.002071/0.002072, allocations: 192.4 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.772/1.772, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001367/0.001367, allocations: 59.67 kB / 326.6 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1299, 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.007572/0.1375, allocations: 5.946 MB / 379.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004053/0.1416, allocations: 1.699 MB / 380.8 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007309/0.1424, allocations: 27.88 kB / 380.9 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006119/0.1431, allocations: 249.5 kB / 381.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005325/0.1436, allocations: 225.7 kB / 381.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.1447, allocations: 499.4 kB / 381.8 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001427/0.1461, allocations: 1.399 MB / 383.2 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009205/0.1471, allocations: 0.6286 MB / 383.8 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006012/0.1477, allocations: 478.2 kB / 384.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004972/0.1482, allocations: 0.4934 MB / 384.8 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.1483, allocations: 120 kB / 384.9 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002265/0.1486, allocations: 143.9 kB / 385.1 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.1488, allocations: 263 kB / 385.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005416/0.1494, allocations: 0.61 MB / 385.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001681/0.1511, allocations: 1.619 MB / 387.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.1511, allocations: 3.938 kB / 387.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1511, allocations: 0 / 387.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.236e-05/0.1511, allocations: 0 / 387.5 MB, free: 2.852 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.002151/0.1533, allocations: 1.451 MB / 389 MB, free: 1.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.1533, allocations: 8.031 kB / 389 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002068/0.1535, allocations: 142.2 kB / 389.1 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.1548, allocations: 0.7628 MB / 389.9 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.815e-05/0.1549, allocations: 90.41 kB / 390 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.155, allocations: 119.9 kB / 390.1 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/0.1568, allocations: 1.264 MB / 391.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.592e-05/0.1569, allocations: 7.938 kB / 391.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.71e-05/0.157, allocations: 52 kB / 391.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.571e-05/0.157, allocations: 36 kB / 391.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.1582, allocations: 0.689 MB / 392.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005845/0.1641, allocations: 6.769 MB / 398.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000725/0.1648, allocations: 265.5 kB / 399.2 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004507/0.1653, allocations: 189.6 kB / 399.4 MB, free: 6.391 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002045/0.1655, allocations: 89.11 kB / 399.5 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/0.1655, allocations: 34.55 kB / 399.5 MB, free: 6.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 3.477e-06/0.1656, allocations: 0 / 399.5 MB, free: 6.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002694/0.1683, allocations: 1.393 MB / 400.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.1683, allocations: 85.09 kB / 401 MB, free: 4.637 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008157/0.1692, allocations: 0.6568 MB / 401.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.1692, allocations: 37.69 kB / 401.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004797/0.1697, allocations: 0.6798 MB / 402.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.025e-05/0.1698, allocations: 118.4 kB / 402.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.17, allocations: 142.4 kB / 402.6 MB, free: 2.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1701, allocations: 386.7 kB / 403 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000254/0.1704, allocations: 141.9 kB / 403.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005125/0.1709, allocations: 0.5624 MB / 403.7 MB, free: 1.684 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.001077/0.172, allocations: 0.9502 MB / 404.6 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.172, allocations: 4 kB / 404.6 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001198/0.1732, allocations: 0.7987 MB / 405.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.1733, allocations: 12 kB / 405.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/0.1733, allocations: 12 kB / 405.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002488/0.1735, allocations: 82.31 kB / 405.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005086/0.1741, allocations: 183.7 kB / 405.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002757/0.1768, allocations: 3.324 MB / 409 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.1773, allocations: 35.92 kB / 409.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.527e-05/0.1773, allocations: 44 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.0004377/0.1778, allocations: 273.4 kB / 409.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.1779, allocations: 75.12 kB / 409.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.178, allocations: 70.42 kB / 409.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.178, allocations: 7.984 kB / 409.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/0.178, allocations: 4 kB / 409.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.269e-06/0.178, allocations: 0 / 409.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.1798, allocations: 1.251 MB / 410.8 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.1799, allocations: 0 / 410.8 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002908/0.1802, allocations: 63.84 kB / 410.9 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001848/0.1803, allocations: 61.67 kB / 410.9 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.81e-05/0.1804, allocations: 8 kB / 410.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002615/0.183, allocations: 3.057 MB / 414 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.183, allocations: 4.031 kB / 414 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.1841, allocations: 0.6429 MB / 414.6 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.1843, allocations: 136.2 kB / 414.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.957e-05/0.1844, allocations: 8 kB / 414.8 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.1846, allocations: 15.98 kB / 414.8 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.152e-05/0.1847, allocations: 27.91 kB / 414.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.1848, allocations: 11.98 kB / 414.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005965/0.1854, allocations: 435 kB / 415.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1854, allocations: 0 / 415.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009972/0.1864, allocations: 160 kB / 415.4 MB, free: 5.004 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.0001724/0.1866, allocations: 119 kB / 415.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001068/0.1876, allocations: 0.6483 MB / 416.2 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1877, allocations: 0 / 416.2 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004528/0.1881, allocations: 361.2 kB / 416.5 MB, free: 3.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005361/0.1887, allocations: 80.3 kB / 416.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/0.1916, allocations: 1.811 MB / 418.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005402/0.1921, allocations: 1.031 MB / 419.4 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002182/0.1924, allocations: 90.02 kB / 419.5 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.1925, allocations: 55.42 kB / 419.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1925, allocations: 4 kB / 419.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of Templates: time 0.01158/0.2041, allocations: 5.578 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)