Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001295/0.001295, allocations: 111.6 kB / 16.62 MB, free: 6.812 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.001253/0.001253, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.532/1.532, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.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.001391/0.001391, allocations: 47.88 kB / 279.5 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1327, allocations: 46.63 MB / 326.1 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.009219/0.1419, allocations: 5.945 MB / 332.1 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004215/0.1462, allocations: 1.653 MB / 333.7 MB, free: 13.14 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001203/0.1474, allocations: 27.88 kB / 333.8 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006279/0.1481, allocations: 186.5 kB / 333.9 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008562/0.149, allocations: 170.4 kB / 334.1 MB, free: 12.76 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001514/0.1505, allocations: 451.6 kB / 334.5 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002188/0.1527, allocations: 1.387 MB / 335.9 MB, free: 10.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001072/0.1538, allocations: 0.6208 MB / 336.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008328/0.1547, allocations: 474.1 kB / 337 MB, free: 9.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004972/0.1552, allocations: 0.4973 MB / 337.5 MB, free: 9.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001451/0.1553, allocations: 124 kB / 337.6 MB, free: 9.199 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002433/0.1556, allocations: 139.9 kB / 337.8 MB, free: 9.062 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002291/0.1558, allocations: 263 kB / 338 MB, free: 8.805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005703/0.1564, allocations: 0.61 MB / 338.6 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001867/0.1583, allocations: 1.565 MB / 340.2 MB, free: 6.621 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.1583, allocations: 0 / 340.2 MB, free: 6.621 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1583, allocations: 0 / 340.2 MB, free: 6.621 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.687e-05/0.1583, allocations: 0 / 340.2 MB, free: 6.621 MB / 286.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.00222/0.1606, allocations: 1.458 MB / 341.7 MB, free: 5.109 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.1606, allocations: 12.03 kB / 341.7 MB, free: 5.098 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.1608, allocations: 138.3 kB / 341.8 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009787/0.1618, allocations: 0.7275 MB / 342.5 MB, free: 4.188 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.082e-05/0.1619, allocations: 90.41 kB / 342.6 MB, free: 4.098 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.1621, allocations: 112 kB / 342.7 MB, free: 3.988 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/0.1641, allocations: 1.268 MB / 344 MB, free: 2.547 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.462e-05/0.1642, allocations: 11.88 kB / 344 MB, free: 2.535 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.227e-05/0.1643, allocations: 52 kB / 344.1 MB, free: 2.484 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.808e-05/0.1643, allocations: 28 kB / 344.1 MB, free: 2.457 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.1655, allocations: 0.6929 MB / 344.8 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006855/0.1724, allocations: 6.82 MB / 351.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007997/0.1732, allocations: 265.2 kB / 351.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003753/0.1736, allocations: 178.2 kB / 352 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003135/0.174, allocations: 89.11 kB / 352.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.174, allocations: 38.56 kB / 352.2 MB, free: 10 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 4.588e-06/0.174, allocations: 0 / 352.2 MB, free: 10 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002895/0.1769, allocations: 1.403 MB / 353.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.177, allocations: 81.11 kB / 353.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008145/0.1778, allocations: 0.6569 MB / 354.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.1778, allocations: 33.7 kB / 354.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005278/0.1784, allocations: 0.6914 MB / 355 MB, free: 6.973 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.592e-05/0.1785, allocations: 114.5 kB / 355.1 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002077/0.1787, allocations: 142.5 kB / 355.3 MB, free: 6.715 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.1789, allocations: 382.8 kB / 355.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002825/0.1792, allocations: 145.9 kB / 355.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005755/0.1798, allocations: 0.5546 MB / 356.3 MB, free: 5.438 MB / 302.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.001271/0.1811, allocations: 0.9543 MB / 357.3 MB, free: 4.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.1811, allocations: 4 kB / 357.3 MB, free: 4.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001459/0.1826, allocations: 0.7922 MB / 358.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.426e-05/0.1826, allocations: 12 kB / 358.1 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.1826, allocations: 12 kB / 358.1 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003637/0.183, allocations: 85.91 kB / 358.2 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005605/0.1836, allocations: 176 kB / 358.4 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003137/0.1867, allocations: 3.34 MB / 361.7 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006712/0.1874, allocations: 31.98 kB / 361.7 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.101e-05/0.1875, allocations: 44 kB / 361.8 MB, free: 15.47 MB / 318.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.0006536/0.1882, allocations: 277.4 kB / 362.1 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001674/0.1883, allocations: 79.05 kB / 362.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.1885, allocations: 70.42 kB / 362.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.1885, allocations: 4 kB / 362.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.1885, allocations: 7.938 kB / 362.2 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.1885, allocations: 3.984 kB / 362.2 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/0.1906, allocations: 1.235 MB / 363.5 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.1906, allocations: 3.984 kB / 363.5 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003414/0.191, allocations: 59.91 kB / 363.5 MB, free: 13.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002156/0.1912, allocations: 65.77 kB / 363.6 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.1912, allocations: 8 kB / 363.6 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002931/0.1942, allocations: 3.061 MB / 366.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.1942, allocations: 4.031 kB / 366.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.1953, allocations: 0.6351 MB / 367.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.1955, allocations: 132.2 kB / 367.4 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.671e-05/0.1956, allocations: 12.06 kB / 367.4 MB, free: 9.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002774/0.1959, allocations: 19.92 kB / 367.5 MB, free: 9.379 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.611e-05/0.1959, allocations: 31.84 kB / 367.5 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.196, allocations: 12 kB / 367.5 MB, free: 9.336 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005981/0.1966, allocations: 435 kB / 367.9 MB, free: 8.918 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.1966, allocations: 3.938 kB / 367.9 MB, free: 8.914 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00113/0.1977, allocations: 164 kB / 368.1 MB, free: 8.754 MB / 318.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.0002124/0.198, allocations: 105.6 kB / 368.2 MB, free: 8.645 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.1995, allocations: 0.6605 MB / 368.8 MB, free: 7.961 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.1996, allocations: 4.062 kB / 368.9 MB, free: 7.957 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005871/0.2002, allocations: 357.3 kB / 369.2 MB, free: 7.582 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007389/0.2009, allocations: 77.06 kB / 369.3 MB, free: 7.504 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004756/0.2057, allocations: 2.334 MB / 371.6 MB, free: 5.129 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009665/0.2067, allocations: 1.03 MB / 372.6 MB, free: 4.07 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004163/0.2071, allocations: 94 kB / 372.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.2072, allocations: 51.42 kB / 372.8 MB, free: 3.926 MB / 318.1 MB Notification: Performance of SimCode: time 1.483e-06/0.2073, allocations: 4 kB / 372.8 MB, free: 3.922 MB / 318.1 MB Notification: Performance of Templates: time 0.2345/0.4418, allocations: 5.365 MB / 378.2 MB, free: 51.18 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1)