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.001127/0.001127, allocations: 109.8 kB / 17.06 MB, free: 5.82 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.001203/0.001203, allocations: 195.9 kB / 18 MB, free: 4.965 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.55/1.55, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001403/0.001403, allocations: 56.39 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1208, allocations: 46.61 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.2754/0.3962, allocations: 5.946 MB / 380.4 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00395/0.4002, allocations: 1.705 MB / 382.1 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006045/0.4009, allocations: 28.5 kB / 382.2 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000549/0.4015, allocations: 245.6 kB / 382.4 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000508/0.402, allocations: 222.8 kB / 382.6 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.4033, allocations: 0.4933 MB / 383.1 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001692/0.405, allocations: 1.404 MB / 384.5 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008425/0.4058, allocations: 0.6169 MB / 385.1 MB, free: 8.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000536/0.4064, allocations: 480 kB / 385.6 MB, free: 7.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005368/0.4069, allocations: 0.4915 MB / 386.1 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001627/0.4071, allocations: 122.3 kB / 386.2 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002575/0.4073, allocations: 139.4 kB / 386.4 MB, free: 7.621 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000201/0.4076, allocations: 265.5 kB / 386.6 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004731/0.408, allocations: 0.6103 MB / 387.2 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002064/0.4101, allocations: 1.626 MB / 388.9 MB, free: 6.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.4101, allocations: 0 / 388.9 MB, free: 6.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4101, allocations: 0 / 388.9 MB, free: 6.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.181e-05/0.4102, allocations: 1.25 kB / 388.9 MB, free: 6.371 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.002394/0.4126, allocations: 1.498 MB / 390.4 MB, free: 5.367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.911e-05/0.4126, allocations: 9.688 kB / 390.4 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002609/0.4129, allocations: 147.9 kB / 390.5 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.4143, allocations: 0.7643 MB / 391.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.034e-05/0.4144, allocations: 86.19 kB / 391.4 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002177/0.4146, allocations: 120.6 kB / 391.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002287/0.4169, allocations: 1.264 MB / 392.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.492e-05/0.417, allocations: 7.844 kB / 392.8 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/0.4171, allocations: 58.5 kB / 392.8 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.949e-05/0.4171, allocations: 31.62 kB / 392.8 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.4184, allocations: 0.6832 MB / 393.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00635/0.4248, allocations: 6.791 MB / 400.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007756/0.4256, allocations: 266.6 kB / 400.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003994/0.426, allocations: 186.5 kB / 400.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001456/0.4262, allocations: 87.11 kB / 400.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.4262, allocations: 38.06 kB / 400.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.985e-06/0.4262, allocations: 0.5625 kB / 400.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002935/0.4291, allocations: 1.425 MB / 402.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.4292, allocations: 88.17 kB / 402.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008186/0.43, allocations: 0.6615 MB / 403.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.4301, allocations: 29.7 kB / 403.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004256/0.4305, allocations: 0.7014 MB / 403.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.4306, allocations: 126.9 kB / 403.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.4309, allocations: 152.4 kB / 404.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.431, allocations: 383.7 kB / 404.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003159/0.4314, allocations: 142.1 kB / 404.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006283/0.432, allocations: 0.5569 MB / 405.1 MB, free: 10.33 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.001278/0.4333, allocations: 0.9539 MB / 406.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.4333, allocations: 4.125 kB / 406.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001423/0.4347, allocations: 0.794 MB / 406.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.917e-05/0.4348, allocations: 11.75 kB / 406.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/0.4348, allocations: 13.38 kB / 406.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000266/0.4351, allocations: 88.41 kB / 407 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005481/0.4356, allocations: 180.6 kB / 407.2 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002723/0.4384, allocations: 3.327 MB / 410.5 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004947/0.4389, allocations: 33.62 kB / 410.5 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-05/0.439, allocations: 44 kB / 410.6 MB, free: 5.621 MB / 334.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.0005686/0.4395, allocations: 277.2 kB / 410.8 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.4397, allocations: 74.44 kB / 410.9 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001327/0.4398, allocations: 75.72 kB / 411 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.4398, allocations: 3.25 kB / 411 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/0.4399, allocations: 2.219 kB / 411 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.4399, allocations: 3.984 kB / 411 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0023/0.4422, allocations: 1.246 MB / 412.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.4422, allocations: 1.219 kB / 412.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.4425, allocations: 65.23 kB / 412.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002327/0.4428, allocations: 63.94 kB / 412.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.931e-05/0.4428, allocations: 10.77 kB / 412.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002643/0.4455, allocations: 3.064 MB / 415.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.4455, allocations: 1.219 kB / 415.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.4465, allocations: 0.6343 MB / 416.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.4467, allocations: 142.9 kB / 416.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.531e-05/0.4467, allocations: 7.75 kB / 416.2 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.447, allocations: 16.77 kB / 416.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.367e-05/0.4471, allocations: 27.75 kB / 416.3 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.4471, allocations: 14.88 kB / 416.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006334/0.4478, allocations: 434.6 kB / 416.7 MB, free: 280 kB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4478, allocations: 0 / 416.7 MB, free: 280 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001245/0.449, allocations: 158.9 kB / 416.9 MB, free: 260 kB / 334.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.0002089/0.4492, allocations: 106.7 kB / 417 MB, free: 164 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.4507, allocations: 0.6663 MB / 417.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.4507, allocations: 0 / 417.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005035/0.4512, allocations: 358.1 kB / 418 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005788/0.4518, allocations: 72.66 kB / 418.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003287/0.4551, allocations: 1.86 MB / 419.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006575/0.4557, allocations: 1.033 MB / 420.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002324/0.456, allocations: 84.06 kB / 421 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.4561, allocations: 57.92 kB / 421.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4561, allocations: 0 / 421.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of Templates: time 0.01327/0.4694, allocations: 5.591 MB / 426.7 MB, free: 9.359 MB / 350.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)