Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.00119/0.001191, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 198 kB / 16.54 MB, free: 6.672 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.726/1.726, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.00142/0.00142, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3905, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007779/0.3984, allocations: 5.96 MB / 331.3 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003952/0.4024, allocations: 1.681 MB / 332.9 MB, free: 11.65 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009197/0.4033, allocations: 30.28 kB / 333 MB, free: 11.64 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006343/0.404, allocations: 254 kB / 333.2 MB, free: 11.41 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006451/0.4047, allocations: 224.1 kB / 333.4 MB, free: 11.21 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.4059, allocations: 0.5013 MB / 333.9 MB, free: 10.78 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001742/0.4077, allocations: 1.377 MB / 335.3 MB, free: 9.871 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000905/0.4086, allocations: 0.6208 MB / 335.9 MB, free: 9.23 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000636/0.4092, allocations: 478.1 kB / 336.4 MB, free: 8.762 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005281/0.4098, allocations: 0.4934 MB / 336.9 MB, free: 8.266 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.4099, allocations: 124 kB / 337 MB, free: 8.145 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002421/0.4102, allocations: 132 kB / 337.2 MB, free: 8.016 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002429/0.4104, allocations: 271 kB / 337.4 MB, free: 7.75 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005191/0.411, allocations: 0.61 MB / 338 MB, free: 7.137 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001491/0.4125, allocations: 1.558 MB / 339.6 MB, free: 5.574 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4125, allocations: 0 / 339.6 MB, free: 5.574 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4125, allocations: 0 / 339.6 MB, free: 5.574 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.878e-05/0.4125, allocations: 3.984 kB / 339.6 MB, free: 5.57 MB / 270.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.002163/0.4147, allocations: 1.474 MB / 341.1 MB, free: 4.043 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.4147, allocations: 8.031 kB / 341.1 MB, free: 4.035 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.4149, allocations: 138.3 kB / 341.2 MB, free: 3.898 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009337/0.4159, allocations: 0.7237 MB / 341.9 MB, free: 3.133 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.89e-05/0.4159, allocations: 86.41 kB / 342 MB, free: 3.047 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.4161, allocations: 116 kB / 342.1 MB, free: 2.934 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.4178, allocations: 1.268 MB / 343.4 MB, free: 1.492 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.228e-05/0.4179, allocations: 7.938 kB / 343.4 MB, free: 1.484 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.676e-05/0.418, allocations: 56 kB / 343.5 MB, free: 1.43 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/0.418, allocations: 32 kB / 343.5 MB, free: 1.398 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.4192, allocations: 0.689 MB / 344.2 MB, free: 0.707 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005731/0.4249, allocations: 6.82 MB / 351 MB, free: 9.551 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006512/0.4256, allocations: 269.2 kB / 351.3 MB, free: 9.27 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003783/0.426, allocations: 185.7 kB / 351.4 MB, free: 9.082 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002093/0.4262, allocations: 85.05 kB / 351.5 MB, free: 8.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.4263, allocations: 38.56 kB / 351.6 MB, free: 8.934 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.834e-06/0.4263, allocations: 4 kB / 351.6 MB, free: 8.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002478/0.4288, allocations: 1.389 MB / 353 MB, free: 7.43 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.4288, allocations: 81.11 kB / 353 MB, free: 7.332 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007773/0.4296, allocations: 0.6608 MB / 353.7 MB, free: 6.656 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.474e-05/0.4297, allocations: 29.7 kB / 353.7 MB, free: 6.621 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004359/0.4301, allocations: 0.6836 MB / 354.4 MB, free: 5.926 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.552e-05/0.4302, allocations: 118.5 kB / 354.5 MB, free: 5.809 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/0.4304, allocations: 142.4 kB / 354.7 MB, free: 5.664 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.4306, allocations: 386.8 kB / 355 MB, free: 5.277 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/0.4309, allocations: 145.9 kB / 355.2 MB, free: 5.133 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005893/0.4315, allocations: 0.5546 MB / 355.7 MB, free: 4.379 MB / 286.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.001102/0.4326, allocations: 0.9573 MB / 356.7 MB, free: 3.188 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.4326, allocations: 4 kB / 356.7 MB, free: 3.184 MB / 286.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001205/0.4339, allocations: 0.795 MB / 357.5 MB, free: 2.375 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.4339, allocations: 12 kB / 357.5 MB, free: 2.363 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/0.4339, allocations: 16 kB / 357.5 MB, free: 2.348 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002482/0.4342, allocations: 78.12 kB / 357.6 MB, free: 2.266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005164/0.4347, allocations: 187.7 kB / 357.8 MB, free: 2.082 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002747/0.4375, allocations: 3.324 MB / 361.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004097/0.4379, allocations: 35.98 kB / 361.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.75e-05/0.4379, allocations: 40 kB / 361.2 MB, free: 14.41 MB / 302.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.0005007/0.4385, allocations: 281.5 kB / 361.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.4386, allocations: 71.06 kB / 361.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/0.4387, allocations: 70.42 kB / 361.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.4387, allocations: 0 / 361.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.661e-05/0.4387, allocations: 4 kB / 361.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.4388, allocations: 3.984 kB / 361.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001986/0.4407, allocations: 1.255 MB / 362.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.4408, allocations: 0 / 362.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003131/0.4411, allocations: 68 kB / 362.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001573/0.4413, allocations: 57.67 kB / 363 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.4413, allocations: 8 kB / 363 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002799/0.4441, allocations: 3.061 MB / 366 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.4441, allocations: 0 / 366 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.4451, allocations: 0.6351 MB / 366.7 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/0.4453, allocations: 140.2 kB / 366.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.981e-05/0.4454, allocations: 4 kB / 366.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002591/0.4457, allocations: 19.98 kB / 366.8 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.377e-05/0.4458, allocations: 23.91 kB / 366.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.4458, allocations: 8 kB / 366.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006207/0.4464, allocations: 439 kB / 367.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4464, allocations: 7.938 kB / 367.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001007/0.4474, allocations: 156 kB / 367.5 MB, free: 7.707 MB / 302.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.000227/0.4477, allocations: 115.2 kB / 367.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.4491, allocations: 0.668 MB / 368.2 MB, free: 6.895 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.4491, allocations: 0 / 368.2 MB, free: 6.895 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004985/0.4496, allocations: 361.2 kB / 368.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005566/0.4501, allocations: 79.86 kB / 368.7 MB, free: 6.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.4537, allocations: 1.833 MB / 370.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008061/0.4546, allocations: 1.034 MB / 371.5 MB, free: 3.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002846/0.4549, allocations: 86.02 kB / 371.6 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.455, allocations: 63.42 kB / 371.7 MB, free: 3.352 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.455, allocations: 3.938 kB / 371.7 MB, free: 3.348 MB / 302.1 MB Notification: Performance of Templates: time 0.01371/0.4687, allocations: 5.4 MB / 377.1 MB, free: 13.94 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1)