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.001098/0.001098, allocations: 108 kB / 17.06 MB, free: 6.02 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.001139/0.001139, allocations: 199 kB / 18 MB, free: 5.098 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.531/1.531, 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.00109/0.00109, allocations: 51.92 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1175, allocations: 46.61 MB / 374.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.254/0.3716, allocations: 5.949 MB / 380.4 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004909/0.3765, allocations: 1.691 MB / 382.1 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00111/0.3777, allocations: 33.59 kB / 382.2 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007593/0.3785, allocations: 248.8 kB / 382.4 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006324/0.3792, allocations: 220.7 kB / 382.6 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.3805, allocations: 0.4962 MB / 383.1 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002371/0.3829, allocations: 1.399 MB / 384.5 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001333/0.3842, allocations: 0.6241 MB / 385.1 MB, free: 8.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001026/0.3852, allocations: 480.7 kB / 385.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00056/0.3858, allocations: 0.4885 MB / 386.1 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001685/0.386, allocations: 122.8 kB / 386.2 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002764/0.3863, allocations: 135.3 kB / 386.4 MB, free: 7.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002014/0.3865, allocations: 266.2 kB / 386.6 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005206/0.387, allocations: 0.6115 MB / 387.2 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001887/0.3889, allocations: 1.62 MB / 388.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.3889, allocations: 4 kB / 388.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3889, allocations: 1.156 kB / 388.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.192e-05/0.389, allocations: 0 / 388.9 MB, free: 6.367 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.002257/0.3912, allocations: 1.453 MB / 390.3 MB, free: 5.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.3913, allocations: 11.03 kB / 390.3 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002331/0.3915, allocations: 144.1 kB / 390.5 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.3928, allocations: 0.7586 MB / 391.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.282e-05/0.3929, allocations: 92.36 kB / 391.3 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/0.393, allocations: 121 kB / 391.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002013/0.395, allocations: 1.261 MB / 392.7 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.48e-05/0.3951, allocations: 7.344 kB / 392.7 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.65e-05/0.3952, allocations: 58.42 kB / 392.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-05/0.3952, allocations: 32.19 kB / 392.8 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.3965, allocations: 0.6879 MB / 393.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005836/0.4023, allocations: 6.772 MB / 400.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007181/0.4031, allocations: 273.8 kB / 400.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003863/0.4035, allocations: 183.8 kB / 400.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001671/0.4036, allocations: 86.78 kB / 400.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.4037, allocations: 41.31 kB / 400.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.504e-06/0.4037, allocations: 1.188 kB / 400.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002648/0.4064, allocations: 1.397 MB / 402.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.4064, allocations: 82.52 kB / 402.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008425/0.4073, allocations: 0.6632 MB / 403 MB, free: 12.19 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.4073, allocations: 33.52 kB / 403 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005147/0.4078, allocations: 0.6766 MB / 403.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.408, allocations: 121.4 kB / 403.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002212/0.4082, allocations: 150 kB / 403.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.4084, allocations: 381.9 kB / 404.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003206/0.4087, allocations: 144.4 kB / 404.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006646/0.4094, allocations: 0.5567 MB / 405 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.00132/0.4107, allocations: 0.9461 MB / 405.9 MB, free: 9.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.807e-06/0.4107, allocations: 4.125 kB / 405.9 MB, free: 9.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001484/0.4122, allocations: 0.7954 MB / 406.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.557e-05/0.4123, allocations: 11.56 kB / 406.8 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.771e-05/0.4123, allocations: 14.06 kB / 406.8 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003258/0.4126, allocations: 80.73 kB / 406.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005951/0.4133, allocations: 185.2 kB / 407 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003463/0.4167, allocations: 3.32 MB / 410.3 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008053/0.4176, allocations: 33.73 kB / 410.4 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.861e-05/0.4177, allocations: 44.19 kB / 410.4 MB, free: 5.75 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.0007181/0.4184, allocations: 277.3 kB / 410.7 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.4186, allocations: 74.16 kB / 410.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.4187, allocations: 71.14 kB / 410.8 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.946e-06/0.4187, allocations: 7.891 kB / 410.8 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.839e-05/0.4187, allocations: 2.469 kB / 410.8 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.4188, allocations: 0 / 410.8 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002268/0.421, allocations: 1.257 MB / 412.1 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.421, allocations: 1.25 kB / 412.1 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003081/0.4214, allocations: 65.62 kB / 412.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002061/0.4216, allocations: 59.67 kB / 412.2 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.4216, allocations: 7.422 kB / 412.2 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002444/0.4241, allocations: 3.058 MB / 415.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4241, allocations: 1.469 kB / 415.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.4251, allocations: 0.6393 MB / 415.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.4253, allocations: 139.1 kB / 416.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.4253, allocations: 6.688 kB / 416.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.4256, allocations: 20.92 kB / 416.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.393e-05/0.4257, allocations: 27.44 kB / 416.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/0.4257, allocations: 11.05 kB / 416.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006585/0.4264, allocations: 439 kB / 416.6 MB, free: 420 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4264, allocations: 0 / 416.6 MB, free: 420 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001077/0.4275, allocations: 155.3 kB / 416.7 MB, free: 404 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.000166/0.4276, allocations: 110.5 kB / 416.8 MB, free: 304 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.4288, allocations: 0.6558 MB / 417.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4288, allocations: 0 / 417.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004792/0.4293, allocations: 361.1 kB / 417.8 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.0005523/0.4299, allocations: 81.55 kB / 417.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003385/0.4333, allocations: 1.821 MB / 419.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006523/0.4339, allocations: 1.03 MB / 420.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002702/0.4342, allocations: 86.27 kB / 420.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.4344, allocations: 55.3 kB / 420.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4344, allocations: 4 kB / 420.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of Templates: time 0.01286/0.4472, allocations: 5.662 MB / 426.6 MB, free: 9.477 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)