Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.007702/0.007702, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001489/0.001489, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.86/1.86, allocations: 205.1 MB / 222.6 MB, free: 4.469 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.001327/0.001327, allocations: 45.75 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1589, allocations: 46.62 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.009604/0.1686, allocations: 5.95 MB / 379.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006012/0.1747, allocations: 1.691 MB / 380.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002546/0.1773, allocations: 31.81 kB / 380.9 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.1787, allocations: 253.6 kB / 381.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001584/0.1803, allocations: 225.6 kB / 381.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001979/0.1823, allocations: 0.4993 MB / 381.8 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002722/0.185, allocations: 1.399 MB / 383.2 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.1864, allocations: 0.6169 MB / 383.8 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001295/0.1877, allocations: 474.2 kB / 384.3 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007965/0.1885, allocations: 0.5011 MB / 384.8 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002216/0.1887, allocations: 124 kB / 384.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004117/0.1892, allocations: 136 kB / 385.1 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003219/0.1895, allocations: 263 kB / 385.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009935/0.1905, allocations: 0.6061 MB / 385.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002608/0.1931, allocations: 1.63 MB / 387.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.152e-05/0.1932, allocations: 0 / 387.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.1932, allocations: 0 / 387.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.798e-05/0.1932, allocations: 0 / 387.6 MB, free: 2.836 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.002829/0.1961, allocations: 1.5 MB / 389 MB, free: 1.281 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/0.1961, allocations: 8.031 kB / 389.1 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002441/0.1964, allocations: 151.1 kB / 389.2 MB, free: 1.125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.1979, allocations: 0.7633 MB / 390 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.515e-05/0.198, allocations: 86.41 kB / 390.1 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/0.1982, allocations: 116 kB / 390.2 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002548/0.2007, allocations: 1.264 MB / 391.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.638e-05/0.2008, allocations: 11.92 kB / 391.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.2009, allocations: 56 kB / 391.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.94e-05/0.201, allocations: 32 kB / 391.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.2025, allocations: 0.6851 MB / 392.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008874/0.2114, allocations: 6.787 MB / 399 MB, free: 6.777 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008921/0.2123, allocations: 265.2 kB / 399.3 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000438/0.2128, allocations: 182.1 kB / 399.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001706/0.213, allocations: 89.03 kB / 399.5 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.331e-05/0.213, allocations: 42.56 kB / 399.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 4.96e-06/0.2131, allocations: 0 / 399.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.003124/0.2162, allocations: 1.439 MB / 401 MB, free: 4.613 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.2163, allocations: 85.05 kB / 401.1 MB, free: 4.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009621/0.2173, allocations: 0.6647 MB / 401.8 MB, free: 3.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.617e-05/0.2173, allocations: 29.7 kB / 401.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005858/0.2179, allocations: 0.7016 MB / 402.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.774e-05/0.218, allocations: 119 kB / 402.6 MB, free: 2.973 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/0.2182, allocations: 150.5 kB / 402.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002426/0.2185, allocations: 382.8 kB / 403.1 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002898/0.2188, allocations: 145.9 kB / 403.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006/0.2194, allocations: 0.5546 MB / 403.8 MB, free: 1.539 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.001252/0.2207, allocations: 0.954 MB / 404.8 MB, free: 356 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.2207, allocations: 7.938 kB / 404.8 MB, free: 348 kB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001449/0.2221, allocations: 0.7915 MB / 405.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.2222, allocations: 8 kB / 405.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-05/0.2222, allocations: 16 kB / 405.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003015/0.2225, allocations: 86.3 kB / 405.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005438/0.2231, allocations: 183.7 kB / 405.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003145/0.2262, allocations: 3.328 MB / 409.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000545/0.2268, allocations: 32 kB / 409.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.596e-05/0.2269, allocations: 44 kB / 409.3 MB, free: 11.56 MB / 350.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.0005466/0.2274, allocations: 269.4 kB / 409.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.2276, allocations: 71.59 kB / 409.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001169/0.2277, allocations: 82.41 kB / 409.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2277, allocations: 4 kB / 409.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.2277, allocations: 0 / 409.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2277, allocations: 0 / 409.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00197/0.2297, allocations: 1.251 MB / 410.9 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2297, allocations: 3.938 kB / 410.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003131/0.23, allocations: 63.95 kB / 411 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001878/0.2302, allocations: 57.62 kB / 411 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.2303, allocations: 11.98 kB / 411.1 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002504/0.2328, allocations: 3.061 MB / 414.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2328, allocations: 0 / 414.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.2339, allocations: 0.6396 MB / 414.8 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.2341, allocations: 148.6 kB / 414.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.485e-05/0.2342, allocations: 12 kB / 414.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002645/0.2345, allocations: 15.98 kB / 414.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.2346, allocations: 31.84 kB / 415 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.2346, allocations: 8 kB / 415 MB, free: 5.422 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006942/0.2353, allocations: 439 kB / 415.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2353, allocations: 0 / 415.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001244/0.2366, allocations: 160 kB / 415.6 MB, free: 4.84 MB / 350.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.0002498/0.2368, allocations: 107.2 kB / 415.7 MB, free: 4.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001349/0.2382, allocations: 0.656 MB / 416.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2382, allocations: 0 / 416.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005264/0.2388, allocations: 361.2 kB / 416.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005835/0.2393, allocations: 76.05 kB / 416.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003621/0.243, allocations: 1.852 MB / 418.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008505/0.2439, allocations: 1.027 MB / 419.6 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003184/0.2442, allocations: 86.03 kB / 419.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.2443, allocations: 59.42 kB / 419.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of SimCode: time 1.914e-06/0.2443, allocations: 4 kB / 419.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of Templates: time 0.01416/0.2585, allocations: 5.582 MB / 425.4 MB, free: 10.91 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1)