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.001053/0.001053, allocations: 94 kB / 16.65 MB, free: 6.59 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.001402/0.001402, allocations: 182.7 kB / 17.56 MB, free: 6.203 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.771/1.771, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0005667/0.0005668, allocations: 8 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.1629, allocations: 47.58 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008036/0.171, allocations: 5.459 MB / 333.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005567/0.1766, allocations: 1.637 MB / 335.4 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00228/0.179, allocations: 31.81 kB / 335.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009639/0.18, allocations: 186.5 kB / 335.6 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00152/0.1815, allocations: 170.4 kB / 335.8 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.1831, allocations: 443.6 kB / 336.2 MB, free: 11.81 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001932/0.185, allocations: 1.301 MB / 337.5 MB, free: 10.51 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009631/0.186, allocations: 0.5335 MB / 338.1 MB, free: 9.949 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007065/0.1867, allocations: 374.1 kB / 338.4 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004836/0.1872, allocations: 413.4 kB / 338.8 MB, free: 9.176 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.419e-05/0.1873, allocations: 48 kB / 338.9 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.1875, allocations: 67.92 kB / 338.9 MB, free: 9.062 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001843/0.1877, allocations: 179.1 kB / 339.1 MB, free: 8.887 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004921/0.1882, allocations: 0.5375 MB / 339.7 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001399/0.1896, allocations: 1.416 MB / 341.1 MB, free: 6.918 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.1896, allocations: 0 / 341.1 MB, free: 6.918 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.1897, allocations: 0 / 341.1 MB, free: 6.918 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.974e-05/0.1897, allocations: 0 / 341.1 MB, free: 6.918 MB / 286.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.002545/0.1922, allocations: 1.244 MB / 342.3 MB, free: 5.621 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.586e-05/0.1923, allocations: 11.97 kB / 342.3 MB, free: 5.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000318/0.1927, allocations: 138.3 kB / 342.5 MB, free: 5.473 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.1939, allocations: 0.7236 MB / 343.2 MB, free: 4.707 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.908e-05/0.194, allocations: 90.41 kB / 343.3 MB, free: 4.617 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.1941, allocations: 112 kB / 343.4 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002327/0.1964, allocations: 1.276 MB / 344.7 MB, free: 3.059 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.699e-05/0.1965, allocations: 7.938 kB / 344.7 MB, free: 3.051 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.1966, allocations: 55.98 kB / 344.7 MB, free: 2.996 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.531e-05/0.1967, allocations: 32 kB / 344.7 MB, free: 2.965 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.1982, allocations: 0.6969 MB / 345.4 MB, free: 2.266 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008099/0.2063, allocations: 6.836 MB / 352.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008138/0.2072, allocations: 277.3 kB / 352.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003885/0.2076, allocations: 181.7 kB / 352.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002028/0.2078, allocations: 81.11 kB / 352.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/0.2078, allocations: 42.55 kB / 352.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 4.899e-06/0.2079, allocations: 3.984 kB / 352.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00301/0.2109, allocations: 1.419 MB / 354.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.123e-05/0.211, allocations: 85.09 kB / 354.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009083/0.2119, allocations: 0.6569 MB / 355 MB, free: 8.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.2119, allocations: 29.7 kB / 355 MB, free: 8.137 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007167/0.2127, allocations: 0.6952 MB / 355.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.2128, allocations: 110.5 kB / 355.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.345e-05/0.2129, allocations: 61.69 kB / 355.9 MB, free: 7.254 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002933/0.2132, allocations: 382.8 kB / 356.3 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003046/0.2135, allocations: 153.9 kB / 356.4 MB, free: 6.719 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006964/0.2142, allocations: 0.5546 MB / 357 MB, free: 5.969 MB / 302.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.001428/0.2156, allocations: 0.969 MB / 358 MB, free: 4.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.2157, allocations: 4 kB / 358 MB, free: 4.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001539/0.2172, allocations: 0.8019 MB / 358.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.164e-05/0.2173, allocations: 12 kB / 358.8 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/0.2173, allocations: 16 kB / 358.8 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003152/0.2176, allocations: 81.62 kB / 358.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005683/0.2182, allocations: 179.7 kB / 359 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002994/0.2212, allocations: 2.986 MB / 362 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004615/0.2217, allocations: 35.98 kB / 362.1 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.936e-05/0.2217, allocations: 48.06 kB / 362.1 MB, free: 336 kB / 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.0005386/0.2223, allocations: 273.4 kB / 362.4 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.2224, allocations: 75.11 kB / 362.5 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001243/0.2226, allocations: 74.3 kB / 362.5 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.2226, allocations: 4 kB / 362.5 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.2226, allocations: 0 / 362.5 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.2226, allocations: 0 / 362.5 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.2247, allocations: 1.263 MB / 363.8 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.2248, allocations: 4 kB / 363.8 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.2251, allocations: 67.89 kB / 363.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001948/0.2253, allocations: 57.62 kB / 363.9 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.2253, allocations: 8 kB / 363.9 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002792/0.2281, allocations: 2.783 MB / 366.7 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2282, allocations: 4.031 kB / 366.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.2293, allocations: 0.6549 MB / 367.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001988/0.2295, allocations: 136.2 kB / 367.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.824e-05/0.2296, allocations: 8.062 kB / 367.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002878/0.2299, allocations: 19.98 kB / 367.5 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.23, allocations: 31.84 kB / 367.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.722e-05/0.23, allocations: 16 kB / 367.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000759/0.2308, allocations: 435 kB / 368 MB, free: 10.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.092e-06/0.2308, allocations: 0 / 368 MB, free: 10.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001404/0.2322, allocations: 156 kB / 368.2 MB, free: 9.879 MB / 318.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.0002726/0.2325, allocations: 107.4 kB / 368.3 MB, free: 9.766 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001478/0.234, allocations: 0.6683 MB / 368.9 MB, free: 9.074 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.234, allocations: 0 / 368.9 MB, free: 9.074 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005809/0.2346, allocations: 369.4 kB / 369.3 MB, free: 8.688 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007284/0.2353, allocations: 75.23 kB / 369.4 MB, free: 8.609 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004444/0.2398, allocations: 2.448 MB / 371.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00095/0.2408, allocations: 1.038 MB / 372.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004092/0.2412, allocations: 86.02 kB / 372.9 MB, free: 4.969 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.2413, allocations: 55.42 kB / 373 MB, free: 4.914 MB / 318.1 MB Notification: Performance of SimCode: time 1.503e-06/0.2413, allocations: 0 / 373 MB, free: 4.914 MB / 318.1 MB Notification: Performance of Templates: time 0.2605/0.5019, allocations: 5.124 MB / 378.1 MB, free: 50.64 MB / 318.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)