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.001594/0.001594, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001311/0.001312, allocations: 195.4 kB / 16.14 MB, free: 6.707 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.598/1.598, allocations: 205.1 MB / 222 MB, free: 4.977 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.001586/0.001586, allocations: 43.94 kB / 278 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3925/0.3941, allocations: 46.63 MB / 324.7 MB, free: 1.816 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.009007/0.4032, allocations: 5.94 MB / 330.6 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006542/0.4098, allocations: 1.652 MB / 332.3 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001701/0.4117, allocations: 29.97 kB / 332.3 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007053/0.4124, allocations: 183.2 kB / 332.5 MB, free: 11.52 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000768/0.4132, allocations: 176.8 kB / 332.7 MB, free: 11.37 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.4145, allocations: 448 kB / 333.1 MB, free: 11 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002063/0.4166, allocations: 1.297 MB / 334.4 MB, free: 10.23 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001244/0.4178, allocations: 0.5485 MB / 334.9 MB, free: 9.867 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008867/0.4187, allocations: 423.1 kB / 335.3 MB, free: 9.461 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000595/0.4193, allocations: 485.2 kB / 335.8 MB, free: 8.984 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.4195, allocations: 72 kB / 335.9 MB, free: 8.914 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002337/0.4197, allocations: 83.94 kB / 336 MB, free: 8.832 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002088/0.4199, allocations: 219.1 kB / 336.2 MB, free: 8.617 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005526/0.4205, allocations: 0.5631 MB / 336.7 MB, free: 8.051 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001319/0.4218, allocations: 1.457 MB / 338.2 MB, free: 6.59 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.4218, allocations: 0 / 338.2 MB, free: 6.59 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.4218, allocations: 0 / 338.2 MB, free: 6.59 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.4219, allocations: 0 / 338.2 MB, free: 6.59 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.002555/0.4244, allocations: 1.458 MB / 339.7 MB, free: 5.078 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.753e-05/0.4245, allocations: 12.03 kB / 339.7 MB, free: 5.066 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002502/0.4248, allocations: 142.3 kB / 339.8 MB, free: 4.926 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.4259, allocations: 0.7275 MB / 340.5 MB, free: 4.156 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-05/0.426, allocations: 90.41 kB / 340.6 MB, free: 4.066 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/0.4262, allocations: 116 kB / 340.7 MB, free: 3.953 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002259/0.4285, allocations: 1.268 MB / 342 MB, free: 2.512 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.958e-05/0.4286, allocations: 7.938 kB / 342 MB, free: 2.504 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.4287, allocations: 48 kB / 342.1 MB, free: 2.457 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.289e-05/0.4287, allocations: 39.94 kB / 342.1 MB, free: 2.418 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.43, allocations: 0.6852 MB / 342.8 MB, free: 1.73 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007271/0.4373, allocations: 6.828 MB / 349.6 MB, free: 10.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007709/0.4381, allocations: 261.3 kB / 349.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000367/0.4385, allocations: 185.6 kB / 350.1 MB, free: 10.11 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000256/0.4388, allocations: 89.09 kB / 350.1 MB, free: 10 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.4388, allocations: 38.5 kB / 350.2 MB, free: 9.953 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 3.406e-06/0.4389, allocations: 4 kB / 350.2 MB, free: 9.949 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002757/0.4416, allocations: 1.395 MB / 351.6 MB, free: 8.441 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.317e-05/0.4417, allocations: 85.11 kB / 351.7 MB, free: 8.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008823/0.4426, allocations: 0.653 MB / 352.3 MB, free: 7.676 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.663e-05/0.4426, allocations: 33.7 kB / 352.3 MB, free: 7.637 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005264/0.4432, allocations: 0.6797 MB / 353 MB, free: 6.945 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.883e-05/0.4433, allocations: 114.5 kB / 353.1 MB, free: 6.832 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.4435, allocations: 150.4 kB / 353.3 MB, free: 6.68 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.4437, allocations: 382.8 kB / 353.7 MB, free: 6.297 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003127/0.444, allocations: 149.9 kB / 353.8 MB, free: 6.148 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006226/0.4446, allocations: 0.5546 MB / 354.4 MB, free: 5.398 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.001319/0.446, allocations: 0.9454 MB / 355.3 MB, free: 4.219 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.446, allocations: 4 kB / 355.3 MB, free: 4.215 MB / 286.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001245/0.4472, allocations: 0.7948 MB / 356.1 MB, free: 3.406 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.4473, allocations: 12 kB / 356.1 MB, free: 3.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/0.4473, allocations: 12.75 kB / 356.1 MB, free: 3.383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003046/0.4476, allocations: 89.67 kB / 356.2 MB, free: 3.289 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005378/0.4482, allocations: 179.7 kB / 356.4 MB, free: 3.113 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002806/0.451, allocations: 2.986 MB / 359.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004095/0.4514, allocations: 35.98 kB / 359.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.579e-05/0.4515, allocations: 40 kB / 359.5 MB, free: 15.79 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.0005771/0.4521, allocations: 277.3 kB / 359.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.4522, allocations: 71.16 kB / 359.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.4523, allocations: 74.42 kB / 359.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.4523, allocations: 4 kB / 359.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.4523, allocations: 0 / 359.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4524, allocations: 3.984 kB / 359.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.4544, allocations: 1.257 MB / 361.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.4544, allocations: 4 kB / 361.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000317/0.4548, allocations: 63.91 kB / 361.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001824/0.4549, allocations: 61.69 kB / 361.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.604e-05/0.455, allocations: 8 kB / 361.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002441/0.4574, allocations: 2.779 MB / 364 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4575, allocations: 4.031 kB / 364 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009162/0.4584, allocations: 0.6351 MB / 364.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.4585, allocations: 140.2 kB / 364.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.902e-05/0.4586, allocations: 8 kB / 364.8 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.4588, allocations: 20 kB / 364.8 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.239e-05/0.4589, allocations: 31.83 kB / 364.9 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.459, allocations: 8.125 kB / 364.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005771/0.4595, allocations: 439 kB / 365.3 MB, free: 9.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4595, allocations: 0 / 365.3 MB, free: 9.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001017/0.4606, allocations: 156 kB / 365.5 MB, free: 9.367 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.0001846/0.4608, allocations: 115.2 kB / 365.6 MB, free: 9.246 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.4619, allocations: 0.6449 MB / 366.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4619, allocations: 0 / 366.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004876/0.4624, allocations: 369.1 kB / 366.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006536/0.4631, allocations: 75.3 kB / 366.7 MB, free: 8.113 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.4666, allocations: 2.331 MB / 369 MB, free: 5.746 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005784/0.4672, allocations: 1.038 MB / 370 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000287/0.4675, allocations: 82.03 kB / 370.1 MB, free: 4.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.4676, allocations: 59.42 kB / 370.2 MB, free: 4.539 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4676, allocations: 0 / 370.2 MB, free: 4.539 MB / 302.1 MB Notification: Performance of Templates: time 0.01187/0.4795, allocations: 5.181 MB / 375.3 MB, free: 15.35 MB / 318.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)