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.007482/0.007482, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001459/0.001459, allocations: 191.8 kB / 16.67 MB, free: 5.52 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.752/1.752, allocations: 205.1 MB / 222.5 MB, free: 12.22 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.001421/0.001421, allocations: 55.92 kB / 326.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1365, allocations: 46.61 MB / 373.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.3515/0.4881, allocations: 5.948 MB / 379.1 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005217/0.4934, allocations: 1.698 MB / 380.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001375/0.4948, allocations: 29.88 kB / 380.8 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007516/0.4956, allocations: 245.8 kB / 381.1 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006688/0.4963, allocations: 225.3 kB / 381.3 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001702/0.498, allocations: 0.4926 MB / 381.8 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002451/0.5004, allocations: 1.405 MB / 383.2 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001229/0.5017, allocations: 0.6231 MB / 383.8 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009789/0.5027, allocations: 481.2 kB / 384.3 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006626/0.5034, allocations: 0.4915 MB / 384.8 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002208/0.5036, allocations: 126.9 kB / 384.9 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003302/0.5039, allocations: 139 kB / 385.1 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002783/0.5042, allocations: 264.9 kB / 385.3 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006377/0.5049, allocations: 0.6065 MB / 385.9 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002718/0.5076, allocations: 1.622 MB / 387.5 MB, free: 6.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.5076, allocations: 0 / 387.5 MB, free: 6.363 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.706e-06/0.5076, allocations: 1.25 kB / 387.5 MB, free: 6.363 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.579e-05/0.5077, allocations: 0 / 387.5 MB, free: 6.363 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.003009/0.5107, allocations: 1.455 MB / 389 MB, free: 5.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.844e-05/0.5108, allocations: 9.938 kB / 389 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002983/0.5111, allocations: 143.5 kB / 389.1 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00154/0.5126, allocations: 0.7555 MB / 389.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.5127, allocations: 88.03 kB / 390 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002223/0.513, allocations: 122.9 kB / 390.1 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002522/0.5155, allocations: 1.269 MB / 391.4 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.47e-05/0.5156, allocations: 10.09 kB / 391.4 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.5157, allocations: 54.81 kB / 391.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.667e-05/0.5157, allocations: 32.31 kB / 391.5 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.5172, allocations: 0.6879 MB / 392.2 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006908/0.5241, allocations: 6.771 MB / 398.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008242/0.525, allocations: 267.3 kB / 399.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004393/0.5255, allocations: 183.2 kB / 399.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001678/0.5256, allocations: 83.42 kB / 399.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.593e-05/0.5257, allocations: 41.95 kB / 399.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.745e-06/0.5257, allocations: 4 kB / 399.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.003223/0.5289, allocations: 1.401 MB / 400.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.934e-05/0.529, allocations: 84.52 kB / 401 MB, free: 12.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/0.5303, allocations: 0.6595 MB / 401.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.71e-05/0.5304, allocations: 32.58 kB / 401.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008176/0.5312, allocations: 0.6771 MB / 402.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.5314, allocations: 120 kB / 402.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003511/0.5318, allocations: 149.9 kB / 402.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003601/0.5321, allocations: 384.6 kB / 403 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000359/0.5325, allocations: 147.1 kB / 403.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/0.5336, allocations: 0.553 MB / 403.7 MB, free: 10.44 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.002288/0.5359, allocations: 0.9491 MB / 404.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-05/0.5359, allocations: 4.125 kB / 404.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002766/0.5387, allocations: 0.7959 MB / 405.4 MB, free: 9.141 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.987e-05/0.5388, allocations: 11.95 kB / 405.4 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.256e-05/0.5388, allocations: 14.75 kB / 405.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005282/0.5394, allocations: 82.23 kB / 405.5 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.5404, allocations: 182.7 kB / 405.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005209/0.5456, allocations: 3.322 MB / 409 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/0.5467, allocations: 34.88 kB / 409.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.5468, allocations: 43.88 kB / 409.1 MB, free: 5.746 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.0009083/0.5477, allocations: 277.5 kB / 409.4 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/0.548, allocations: 73.59 kB / 409.5 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001837/0.5482, allocations: 71.03 kB / 409.5 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.5482, allocations: 7.188 kB / 409.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.967e-05/0.5482, allocations: 2.156 kB / 409.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.5483, allocations: 1.062 kB / 409.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003595/0.5519, allocations: 1.25 MB / 410.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.5519, allocations: 1.219 kB / 410.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004989/0.5524, allocations: 65.67 kB / 410.9 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002659/0.5527, allocations: 58.84 kB / 410.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.994e-05/0.5527, allocations: 11.8 kB / 410.9 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004012/0.5568, allocations: 3.051 MB / 414 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.286e-06/0.5568, allocations: 1.156 kB / 414 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00173/0.5585, allocations: 0.6379 MB / 414.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003434/0.5589, allocations: 141.4 kB / 414.7 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.686e-05/0.559, allocations: 7.281 kB / 414.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00043/0.5594, allocations: 25.5 kB / 414.8 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.5596, allocations: 30.5 kB / 414.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/0.5596, allocations: 11.72 kB / 414.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001066/0.5607, allocations: 435.2 kB / 415.2 MB, free: 408 kB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5607, allocations: 0 / 415.2 MB, free: 408 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001937/0.5627, allocations: 159.2 kB / 415.4 MB, free: 388 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.0002778/0.563, allocations: 105.7 kB / 415.5 MB, free: 292 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002011/0.565, allocations: 0.6587 MB / 416.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.565, allocations: 0 / 416.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007925/0.5658, allocations: 355.4 kB / 416.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009733/0.5668, allocations: 76.92 kB / 416.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006345/0.5732, allocations: 1.819 MB / 418.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00141/0.5746, allocations: 1.038 MB / 419.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005628/0.5752, allocations: 81.22 kB / 419.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002206/0.5754, allocations: 59.52 kB / 419.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of SimCode: time 1.503e-06/0.5755, allocations: 0 / 419.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of Templates: time 0.02694/0.6024, allocations: 5.582 MB / 425.2 MB, free: 9.527 MB / 350.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)