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.0008803/0.0008804, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.006301/0.006301, allocations: 174.2 kB / 16.27 MB, free: 6.613 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.709/1.709, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0005259/0.0005261, allocations: 16 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3792/0.3797, allocations: 47.58 MB / 327 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007384/0.3872, allocations: 5.46 MB / 332.5 MB, free: 13.04 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005673/0.393, allocations: 1.645 MB / 334.1 MB, free: 11.67 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001961/0.395, allocations: 28.88 kB / 334.2 MB, free: 11.66 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009177/0.3959, allocations: 182.7 kB / 334.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001636/0.3976, allocations: 177.6 kB / 334.5 MB, free: 11.35 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001841/0.3994, allocations: 443.6 kB / 334.9 MB, free: 10.98 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003096/0.4026, allocations: 1.297 MB / 336.2 MB, free: 10.14 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001003/0.4036, allocations: 0.5413 MB / 336.8 MB, free: 9.57 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009987/0.4046, allocations: 366.1 kB / 337.1 MB, free: 9.211 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005675/0.4052, allocations: 417.3 kB / 337.5 MB, free: 8.801 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.4053, allocations: 51.94 kB / 337.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002243/0.4055, allocations: 63.98 kB / 337.7 MB, free: 8.688 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002123/0.4057, allocations: 179.1 kB / 337.8 MB, free: 8.512 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006177/0.4064, allocations: 0.5375 MB / 338.4 MB, free: 7.965 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001344/0.4077, allocations: 1.418 MB / 339.8 MB, free: 6.543 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.4077, allocations: 0 / 339.8 MB, free: 6.543 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.4078, allocations: 4 kB / 339.8 MB, free: 6.539 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.643e-05/0.4078, allocations: 4 kB / 339.8 MB, free: 6.535 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.00237/0.4102, allocations: 1.236 MB / 341 MB, free: 5.246 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.411e-05/0.4102, allocations: 8.031 kB / 341 MB, free: 5.238 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000355/0.4106, allocations: 146.3 kB / 341.2 MB, free: 5.094 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001164/0.4118, allocations: 0.712 MB / 341.9 MB, free: 4.34 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.71e-05/0.4119, allocations: 90.41 kB / 342 MB, free: 4.25 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.4121, allocations: 123.9 kB / 342.1 MB, free: 4.129 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002373/0.4144, allocations: 1.272 MB / 343.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.461e-05/0.4145, allocations: 7.875 kB / 343.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.4146, allocations: 52 kB / 343.4 MB, free: 2.625 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.81e-05/0.4147, allocations: 32 kB / 343.5 MB, free: 2.594 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.4161, allocations: 0.693 MB / 344.2 MB, free: 1.898 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007437/0.4235, allocations: 6.84 MB / 351 MB, free: 10.72 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007772/0.4244, allocations: 273.2 kB / 351.3 MB, free: 10.44 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003631/0.4247, allocations: 177.7 kB / 351.4 MB, free: 10.26 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000193/0.4249, allocations: 89.09 kB / 351.5 MB, free: 10.15 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.425, allocations: 46.48 kB / 351.6 MB, free: 10.1 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 3.146e-06/0.425, allocations: 0 / 351.6 MB, free: 10.1 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002882/0.4279, allocations: 1.409 MB / 353 MB, free: 8.578 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.638e-05/0.428, allocations: 81.09 kB / 353.1 MB, free: 8.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009116/0.4289, allocations: 0.6646 MB / 353.7 MB, free: 7.805 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.4289, allocations: 29.7 kB / 353.8 MB, free: 7.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006317/0.4296, allocations: 0.6798 MB / 354.4 MB, free: 7.078 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.4298, allocations: 118.4 kB / 354.6 MB, free: 6.961 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.4299, allocations: 69.62 kB / 354.6 MB, free: 6.887 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002752/0.4302, allocations: 382.8 kB / 355 MB, free: 6.504 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003309/0.4305, allocations: 149.9 kB / 355.1 MB, free: 6.355 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007277/0.4313, allocations: 0.5546 MB / 355.7 MB, free: 5.605 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.001434/0.4327, allocations: 0.9647 MB / 356.7 MB, free: 4.406 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.4327, allocations: 4 kB / 356.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001462/0.4342, allocations: 0.8029 MB / 357.5 MB, free: 3.586 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.191e-05/0.4343, allocations: 12 kB / 357.5 MB, free: 3.574 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.638e-05/0.4343, allocations: 16 kB / 357.5 MB, free: 3.559 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003145/0.4346, allocations: 81.69 kB / 357.6 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000555/0.4352, allocations: 184.1 kB / 357.8 MB, free: 3.293 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/0.438, allocations: 2.982 MB / 360.7 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005083/0.4385, allocations: 44.05 kB / 360.8 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.107e-05/0.4386, allocations: 40.05 kB / 360.8 MB, free: 15.96 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 sytem: 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.0005877/0.4392, allocations: 269.4 kB / 361.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.4394, allocations: 75.06 kB / 361.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001333/0.4395, allocations: 74.34 kB / 361.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.4395, allocations: 7.938 kB / 361.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.4396, allocations: 4 kB / 361.2 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.4396, allocations: 4 kB / 361.2 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002028/0.4416, allocations: 1.259 MB / 362.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.4416, allocations: 0 / 362.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003379/0.442, allocations: 71.89 kB / 362.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001862/0.4422, allocations: 61.8 kB / 362.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.4422, allocations: 8 kB / 362.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002175/0.4444, allocations: 2.783 MB / 365.4 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.4444, allocations: 0 / 365.4 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009932/0.4454, allocations: 0.6506 MB / 366.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.4456, allocations: 144.2 kB / 366.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.487e-05/0.4457, allocations: 4 kB / 366.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.4459, allocations: 19.98 kB / 366.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.319e-05/0.446, allocations: 31.84 kB / 366.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.4461, allocations: 12 kB / 366.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007562/0.4468, allocations: 435 kB / 366.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4468, allocations: 0 / 366.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001461/0.4483, allocations: 160 kB / 366.9 MB, free: 9.512 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.0003202/0.4486, allocations: 111.1 kB / 367 MB, free: 9.395 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.4502, allocations: 0.6605 MB / 367.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4503, allocations: 0 / 367.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005313/0.4508, allocations: 369.3 kB / 368 MB, free: 8.324 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007639/0.4516, allocations: 71.3 kB / 368.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003719/0.4553, allocations: 2.459 MB / 370.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007545/0.4561, allocations: 1.03 MB / 371.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003003/0.4564, allocations: 82.03 kB / 371.6 MB, free: 4.609 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.4565, allocations: 55.42 kB / 371.7 MB, free: 4.555 MB / 302.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4565, allocations: 4 kB / 371.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of Templates: time 0.01514/0.4717, allocations: 5.136 MB / 376.8 MB, free: 15.41 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)