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.007019/0.007019, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001134/0.001134, allocations: 196.1 kB / 16.67 MB, free: 5.52 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.76/1.76, allocations: 205.1 MB / 222.5 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.001451/0.001451, allocations: 55.92 kB / 326.6 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1423, allocations: 46.61 MB / 373.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.3381/0.4804, allocations: 5.948 MB / 379.1 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005103/0.4856, allocations: 1.693 MB / 380.8 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008973/0.4865, allocations: 29.88 kB / 380.8 MB, free: 9.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007225/0.4873, allocations: 249.3 kB / 381.1 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006028/0.4879, allocations: 222.4 kB / 381.3 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001491/0.4894, allocations: 0.494 MB / 381.8 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002325/0.4918, allocations: 1.406 MB / 383.2 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.4931, allocations: 0.6228 MB / 383.8 MB, free: 8.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009595/0.4941, allocations: 481.7 kB / 384.3 MB, free: 7.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008085/0.4949, allocations: 0.4907 MB / 384.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002536/0.4951, allocations: 122.1 kB / 384.9 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003364/0.4955, allocations: 139.2 kB / 385 MB, free: 7.621 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003283/0.4958, allocations: 270.2 kB / 385.3 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007812/0.4966, allocations: 0.6062 MB / 385.9 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003132/0.4998, allocations: 1.62 MB / 387.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.27e-05/0.4998, allocations: 1.5 kB / 387.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.4998, allocations: 1.156 kB / 387.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.16e-05/0.4998, allocations: 0 / 387.5 MB, free: 6.383 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.003206/0.5031, allocations: 1.455 MB / 389 MB, free: 5.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.537e-05/0.5031, allocations: 9.438 kB / 389 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002931/0.5034, allocations: 143.9 kB / 389.1 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001594/0.505, allocations: 0.7587 MB / 389.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.14e-05/0.5051, allocations: 86.28 kB / 390 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000211/0.5054, allocations: 122.4 kB / 390.1 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002168/0.5075, allocations: 1.265 MB / 391.4 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.818e-05/0.5076, allocations: 12.12 kB / 391.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.352e-05/0.5077, allocations: 54.03 kB / 391.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-05/0.5077, allocations: 31.69 kB / 391.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.5092, allocations: 0.6882 MB / 392.2 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007426/0.5166, allocations: 6.772 MB / 398.9 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007867/0.5174, allocations: 272.5 kB / 399.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004743/0.5179, allocations: 186.3 kB / 399.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001812/0.5181, allocations: 88.19 kB / 399.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.656e-05/0.5181, allocations: 33.66 kB / 399.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.825e-06/0.5182, allocations: 4 kB / 399.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002851/0.521, allocations: 1.397 MB / 400.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.5211, allocations: 84.39 kB / 401 MB, free: 12.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.5222, allocations: 0.6591 MB / 401.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/0.5222, allocations: 31.05 kB / 401.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005841/0.5228, allocations: 0.6817 MB / 402.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.579e-05/0.5229, allocations: 122.3 kB / 402.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001999/0.5232, allocations: 148.5 kB / 402.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002098/0.5234, allocations: 383.9 kB / 403 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003064/0.5237, allocations: 151.7 kB / 403.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006523/0.5243, allocations: 0.548 MB / 403.7 MB, free: 10.45 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.001268/0.5256, allocations: 0.9458 MB / 404.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/0.5256, allocations: 4.125 kB / 404.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00147/0.5271, allocations: 0.7954 MB / 405.4 MB, free: 9.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/0.5272, allocations: 12.02 kB / 405.4 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.172e-05/0.5272, allocations: 14.59 kB / 405.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002961/0.5275, allocations: 86.59 kB / 405.5 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005957/0.5281, allocations: 181.1 kB / 405.7 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002995/0.5311, allocations: 3.324 MB / 409 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004865/0.5316, allocations: 30.69 kB / 409.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.878e-05/0.5317, allocations: 43.06 kB / 409.1 MB, free: 5.754 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.0005735/0.5323, allocations: 281.7 kB / 409.4 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.5324, allocations: 73.75 kB / 409.5 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.5325, allocations: 72.25 kB / 409.5 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.5325, allocations: 4 kB / 409.5 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.5326, allocations: 1.312 kB / 409.5 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.5326, allocations: 1.438 kB / 409.5 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.5348, allocations: 1.254 MB / 410.8 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.5348, allocations: 1.031 kB / 410.8 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003231/0.5351, allocations: 66.42 kB / 410.9 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001658/0.5353, allocations: 63.59 kB / 410.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.842e-05/0.5353, allocations: 7.594 kB / 410.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002438/0.5378, allocations: 3.051 MB / 414 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.286e-05/0.5378, allocations: 9.188 kB / 414 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000973/0.5388, allocations: 0.6323 MB / 414.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.5389, allocations: 141.6 kB / 414.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.228e-05/0.539, allocations: 11.25 kB / 414.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.5392, allocations: 13.75 kB / 414.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.15e-05/0.5393, allocations: 34.98 kB / 414.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-05/0.5394, allocations: 6.938 kB / 414.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006413/0.54, allocations: 434.3 kB / 415.2 MB, free: 416 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.54, allocations: 0 / 415.2 MB, free: 416 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001029/0.5411, allocations: 159.1 kB / 415.4 MB, free: 396 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.0002267/0.5413, allocations: 111.2 kB / 415.5 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.5427, allocations: 0.6558 MB / 416.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.5427, allocations: 0 / 416.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005875/0.5433, allocations: 358.9 kB / 416.5 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.0006431/0.544, allocations: 77.94 kB / 416.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00417/0.5482, allocations: 1.82 MB / 418.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008574/0.549, allocations: 1.039 MB / 419.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003332/0.5494, allocations: 87.2 kB / 419.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.5495, allocations: 54.8 kB / 419.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5495, allocations: 0 / 419.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of Templates: time 0.01719/0.5667, allocations: 5.581 MB / 425.2 MB, free: 9.531 MB / 350.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)