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.001092/0.001092, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.0009627/0.000963, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.537/1.537, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004769/0.000477, allocations: 10.81 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2744, allocations: 47.59 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005458/0.2799, allocations: 5.121 MB / 331.6 MB, free: 13.35 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003281/0.2832, allocations: 1.61 MB / 333.2 MB, free: 12.01 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008578/0.2841, allocations: 36.56 kB / 333.2 MB, free: 12 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006156/0.2848, allocations: 172.7 kB / 333.4 MB, free: 11.85 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007631/0.2855, allocations: 172.9 kB / 333.6 MB, free: 11.7 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.2866, allocations: 327.4 kB / 333.9 MB, free: 11.45 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001751/0.2884, allocations: 1.228 MB / 335.1 MB, free: 10.7 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008247/0.2893, allocations: 460.1 kB / 335.6 MB, free: 10.38 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005502/0.2898, allocations: 350.4 kB / 335.9 MB, free: 10.04 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000457/0.2903, allocations: 401.6 kB / 336.3 MB, free: 9.645 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.793e-05/0.2904, allocations: 48 kB / 336.4 MB, free: 9.598 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.2906, allocations: 68 kB / 336.4 MB, free: 9.531 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.2907, allocations: 175.2 kB / 336.6 MB, free: 9.359 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002231/0.291, allocations: 237 kB / 336.8 MB, free: 9.121 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.292, allocations: 1.158 MB / 338 MB, free: 7.961 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.292, allocations: 3.984 kB / 338 MB, free: 7.957 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.292, allocations: 0 / 338 MB, free: 7.957 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.731e-05/0.2921, allocations: 0 / 338 MB, free: 7.957 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.001857/0.2939, allocations: 1.24 MB / 339.2 MB, free: 6.664 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.43e-05/0.294, allocations: 16.03 kB / 339.2 MB, free: 6.648 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002167/0.2942, allocations: 138.3 kB / 339.4 MB, free: 6.512 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.2953, allocations: 0.6853 MB / 340.1 MB, free: 5.785 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.843e-05/0.2954, allocations: 98.3 kB / 340.2 MB, free: 5.688 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001673/0.2955, allocations: 123.9 kB / 340.3 MB, free: 5.566 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001932/0.2975, allocations: 1.252 MB / 341.5 MB, free: 4.145 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.2975, allocations: 11.94 kB / 341.5 MB, free: 4.133 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-05/0.2976, allocations: 59.92 kB / 341.6 MB, free: 4.074 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.64e-05/0.2977, allocations: 32 kB / 341.6 MB, free: 4.043 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.2989, allocations: 0.6851 MB / 342.3 MB, free: 3.355 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005762/0.3047, allocations: 6.824 MB / 349.1 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006101/0.3053, allocations: 273.2 kB / 349.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003536/0.3057, allocations: 181.6 kB / 349.6 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/0.3058, allocations: 89.09 kB / 349.7 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.3059, allocations: 34.56 kB / 349.7 MB, free: 11.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.824e-06/0.3059, allocations: 0 / 349.7 MB, free: 11.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002305/0.3082, allocations: 1.412 MB / 351.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.3083, allocations: 85.05 kB / 351.2 MB, free: 9.949 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007057/0.309, allocations: 0.649 MB / 351.9 MB, free: 9.293 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.309, allocations: 33.7 kB / 351.9 MB, free: 9.254 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004462/0.3095, allocations: 0.6798 MB / 352.6 MB, free: 8.562 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.408e-05/0.3096, allocations: 114.4 kB / 352.7 MB, free: 8.449 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-05/0.3096, allocations: 16 kB / 352.7 MB, free: 8.434 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.3098, allocations: 390.8 kB / 353.1 MB, free: 8.043 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003041/0.3101, allocations: 145.9 kB / 353.2 MB, free: 7.902 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005553/0.3107, allocations: 0.5506 MB / 353.8 MB, free: 7.156 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.000629/0.3113, allocations: 445.2 kB / 354.2 MB, free: 6.688 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.3113, allocations: 4 kB / 354.2 MB, free: 6.684 MB / 286.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001224/0.3125, allocations: 0.7879 MB / 355 MB, free: 5.883 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.3126, allocations: 16 kB / 355 MB, free: 5.867 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/0.3126, allocations: 16 kB / 355 MB, free: 5.852 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002276/0.3128, allocations: 85.62 kB / 355.1 MB, free: 5.762 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005242/0.3134, allocations: 183.7 kB / 355.3 MB, free: 5.582 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002331/0.3157, allocations: 2.986 MB / 358.3 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003846/0.3161, allocations: 36 kB / 358.3 MB, free: 2.289 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.486e-05/0.3162, allocations: 40 kB / 358.4 MB, free: 2.25 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004085/0.3166, allocations: 277.6 kB / 358.6 MB, free: 1.969 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.3167, allocations: 75.06 kB / 358.7 MB, free: 1.895 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001266/0.3168, allocations: 70.41 kB / 358.8 MB, free: 1.82 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3169, allocations: 7.938 kB / 358.8 MB, free: 1.812 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.3169, allocations: 7.953 kB / 358.8 MB, free: 1.805 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3169, allocations: 0 / 358.8 MB, free: 1.805 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001874/0.3188, allocations: 1.259 MB / 360 MB, free: 484 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.3188, allocations: 4 kB / 360 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003072/0.3191, allocations: 67.95 kB / 360.1 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000151/0.3193, allocations: 53.62 kB / 360.2 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.3193, allocations: 8 kB / 360.2 MB, free: 344 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/0.3213, allocations: 2.787 MB / 363 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.3213, allocations: 0 / 363 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008975/0.3222, allocations: 0.6545 MB / 363.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/0.3223, allocations: 136.2 kB / 363.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.475e-05/0.3224, allocations: 11.94 kB / 363.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.3226, allocations: 19.98 kB / 363.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.936e-05/0.3227, allocations: 27.92 kB / 363.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.3227, allocations: 7.938 kB / 363.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004979/0.3232, allocations: 435 kB / 364.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3232, allocations: 0 / 364.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000839/0.3241, allocations: 156 kB / 364.4 MB, free: 11.81 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001457/0.3242, allocations: 107.2 kB / 364.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.3253, allocations: 0.6518 MB / 365.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3253, allocations: 0 / 365.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004801/0.3258, allocations: 370.4 kB / 365.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005686/0.3264, allocations: 71.3 kB / 365.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003755/0.3302, allocations: 2.33 MB / 367.9 MB, free: 8.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007679/0.331, allocations: 1.034 MB / 368.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002983/0.3313, allocations: 86.03 kB / 369 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.3314, allocations: 55.41 kB / 369.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of SimCode: time 2.304e-06/0.3314, allocations: 0 / 369.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of Templates: time 0.01248/0.3439, allocations: 5.026 MB / 374.1 MB, free: 1.961 MB / 302.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)