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.001014/0.001014, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.009222/0.009222, allocations: 171.5 kB / 16.27 MB, free: 6.652 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.961/1.961, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0005719/0.0005722, allocations: 14.81 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3963/0.3969, allocations: 47.58 MB / 327 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006683/0.4036, allocations: 5.46 MB / 332.5 MB, free: 13.03 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004771/0.4084, allocations: 1.639 MB / 334.1 MB, free: 11.67 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001366/0.4099, allocations: 31.72 kB / 334.2 MB, free: 11.66 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006361/0.4105, allocations: 186.9 kB / 334.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008718/0.4114, allocations: 164.6 kB / 334.5 MB, free: 11.36 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.4127, allocations: 452 kB / 334.9 MB, free: 10.98 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002171/0.4148, allocations: 1.3 MB / 336.2 MB, free: 10.12 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000939/0.4158, allocations: 0.5374 MB / 336.8 MB, free: 9.562 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007811/0.4166, allocations: 362.1 kB / 337.1 MB, free: 9.207 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004817/0.4171, allocations: 417.3 kB / 337.5 MB, free: 8.797 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.218e-05/0.4172, allocations: 52 kB / 337.6 MB, free: 8.746 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002129/0.4174, allocations: 67.98 kB / 337.7 MB, free: 8.68 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001639/0.4176, allocations: 179.1 kB / 337.8 MB, free: 8.504 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005492/0.4181, allocations: 0.5375 MB / 338.4 MB, free: 7.957 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001587/0.4197, allocations: 1.421 MB / 339.8 MB, free: 6.531 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.113e-05/0.4198, allocations: 0 / 339.8 MB, free: 6.531 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.358e-06/0.4198, allocations: 0 / 339.8 MB, free: 6.531 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.481e-05/0.4198, allocations: 0 / 339.8 MB, free: 6.531 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.002324/0.4222, allocations: 1.236 MB / 341 MB, free: 5.242 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.4222, allocations: 16.03 kB / 341 MB, free: 5.227 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003188/0.4226, allocations: 138.3 kB / 341.2 MB, free: 5.09 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.4236, allocations: 0.7198 MB / 341.9 MB, free: 4.328 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.014e-05/0.4237, allocations: 86.41 kB / 342 MB, free: 4.242 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.4239, allocations: 123.9 kB / 342.1 MB, free: 4.121 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002281/0.4262, allocations: 1.264 MB / 343.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.098e-05/0.4262, allocations: 15.88 kB / 343.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001995/0.4264, allocations: 52 kB / 343.4 MB, free: 2.617 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.092e-05/0.4265, allocations: 35.98 kB / 343.5 MB, free: 2.582 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.428, allocations: 0.6969 MB / 344.2 MB, free: 1.883 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0079/0.436, allocations: 6.832 MB / 351 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.4372, allocations: 265.3 kB / 351.3 MB, free: 10.44 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004295/0.4376, allocations: 189.7 kB / 351.4 MB, free: 10.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003253/0.438, allocations: 89.08 kB / 351.5 MB, free: 10.14 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.696e-05/0.4381, allocations: 42.5 kB / 351.6 MB, free: 10.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 6.542e-06/0.4381, allocations: 0 / 351.6 MB, free: 10.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.003385/0.4415, allocations: 1.412 MB / 353 MB, free: 8.566 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.73e-05/0.4416, allocations: 81.11 kB / 353.1 MB, free: 8.469 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001077/0.4426, allocations: 0.6607 MB / 353.7 MB, free: 7.797 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.4427, allocations: 33.7 kB / 353.8 MB, free: 7.758 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007114/0.4434, allocations: 0.672 MB / 354.4 MB, free: 7.074 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002618/0.4437, allocations: 122.4 kB / 354.5 MB, free: 6.953 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.4438, allocations: 69.62 kB / 354.6 MB, free: 6.879 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0004038/0.4443, allocations: 390.7 kB / 355 MB, free: 6.488 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003771/0.4446, allocations: 141.9 kB / 355.1 MB, free: 6.348 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008815/0.4455, allocations: 0.5585 MB / 355.7 MB, free: 5.594 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.002/0.4476, allocations: 0.9574 MB / 356.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.4476, allocations: 4 kB / 356.7 MB, free: 4.398 MB / 286.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00176/0.4493, allocations: 0.8072 MB / 357.5 MB, free: 3.578 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.664e-05/0.4494, allocations: 12 kB / 357.5 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.001e-05/0.4494, allocations: 16.06 kB / 357.5 MB, free: 3.551 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004338/0.4499, allocations: 77.69 kB / 357.6 MB, free: 3.469 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006002/0.4505, allocations: 191.7 kB / 357.8 MB, free: 3.281 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004585/0.4551, allocations: 2.986 MB / 360.7 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000627/0.4557, allocations: 32 kB / 360.8 MB, free: 0 / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.4559, allocations: 44.05 kB / 360.8 MB, free: 15.95 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.0007419/0.4566, allocations: 277.3 kB / 361.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.4568, allocations: 71.06 kB / 361.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001541/0.4569, allocations: 82.34 kB / 361.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.457, allocations: 4 kB / 361.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/0.457, allocations: 0 / 361.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.457, allocations: 0 / 361.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002418/0.4594, allocations: 1.263 MB / 362.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.4594, allocations: 4.094 kB / 362.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003345/0.4598, allocations: 67.89 kB / 362.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002129/0.46, allocations: 61.62 kB / 362.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.46, allocations: 8 kB / 362.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003322/0.4634, allocations: 2.783 MB / 365.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.505e-06/0.4634, allocations: 8.016 kB / 365.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/0.4648, allocations: 0.6467 MB / 366.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.465, allocations: 140.2 kB / 366.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.76e-05/0.465, allocations: 8.062 kB / 366.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002753/0.4653, allocations: 19.98 kB / 366.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.4654, allocations: 31.84 kB / 366.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.4655, allocations: 4 kB / 366.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008732/0.4664, allocations: 439 kB / 366.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.4664, allocations: 4 kB / 366.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001178/0.4676, allocations: 156 kB / 366.9 MB, free: 9.5 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.0002856/0.4679, allocations: 115.5 kB / 367 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.4693, allocations: 0.6637 MB / 367.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4694, allocations: 0 / 367.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005108/0.4699, allocations: 362.1 kB / 368 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007073/0.4706, allocations: 75.28 kB / 368.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004691/0.4753, allocations: 2.447 MB / 370.5 MB, free: 5.746 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000879/0.4762, allocations: 1.038 MB / 371.6 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003691/0.4766, allocations: 89.95 kB / 371.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.4767, allocations: 55.42 kB / 371.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4767, allocations: 0 / 371.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of Templates: time 0.01938/0.4961, allocations: 5.132 MB / 376.8 MB, free: 15.39 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)