Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001636/0.001636, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00199/0.00199, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.395/1.395, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002874/0.002874, allocations: 67.89 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2914, allocations: 50.54 MB / 409.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.004226/0.2957, allocations: 2.912 MB / 412 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.297, allocations: 0.7088 MB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.2971, allocations: 4 kB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.2973, allocations: 67.36 kB / 412.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001586/0.2975, allocations: 79.2 kB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002724/0.2978, allocations: 95.88 kB / 412.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004057/0.2982, allocations: 382.8 kB / 413.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003097/0.2985, allocations: 164.5 kB / 413.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002815/0.2988, allocations: 151.5 kB / 413.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.299, allocations: 155.3 kB / 413.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.402e-05/0.2991, allocations: 36 kB / 413.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.537e-05/0.2991, allocations: 32 kB / 413.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.838e-05/0.2992, allocations: 75.75 kB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001664/0.2994, allocations: 171.1 kB / 414.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000448/0.2998, allocations: 389.4 kB / 414.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2999, allocations: 4 kB / 414.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2999, allocations: 0 / 414.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.2999, allocations: 0 / 414.5 MB, free: 11.93 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009806/0.3009, allocations: 0.6235 MB / 415.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.3009, allocations: 12.03 kB / 415.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.818e-05/0.301, allocations: 66.72 kB / 415.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.501e-05/0.3011, allocations: 40.7 kB / 415.2 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003815/0.3015, allocations: 271.8 kB / 415.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.3015, allocations: 25.03 kB / 415.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.829e-05/0.3016, allocations: 28.38 kB / 415.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005445/0.3021, allocations: 286.2 kB / 415.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.3021, allocations: 0 / 415.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/0.3022, allocations: 16 kB / 415.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.3022, allocations: 8 kB / 415.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004852/0.3027, allocations: 214.4 kB / 416 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.3043, allocations: 1.019 MB / 417.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003429/0.3047, allocations: 166.5 kB / 417.2 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002903/0.305, allocations: 140.7 kB / 417.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.305, allocations: 0 / 417.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.3051, allocations: 34.56 kB / 417.4 MB, free: 8.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.122e-06/0.3051, allocations: 3.938 kB / 417.4 MB, free: 8.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006312/0.3057, allocations: 225.7 kB / 417.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.3058, allocations: 51.41 kB / 417.7 MB, free: 8.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.306, allocations: 227 kB / 417.9 MB, free: 8.281 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.082e-05/0.306, allocations: 29.7 kB / 417.9 MB, free: 8.246 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.3062, allocations: 188.4 kB / 418.1 MB, free: 8.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.698e-05/0.3062, allocations: 75.38 kB / 418.2 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.167e-05/0.3063, allocations: 49.98 kB / 418.2 MB, free: 7.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.3065, allocations: 338.8 kB / 418.6 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.3067, allocations: 68.52 kB / 418.6 MB, free: 7.523 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.3069, allocations: 135.4 kB / 418.8 MB, free: 7.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004042/0.3073, allocations: 233.1 kB / 419 MB, free: 7.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3074, allocations: 0 / 419 MB, free: 7.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005504/0.3079, allocations: 277.2 kB / 419.3 MB, free: 6.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3079, allocations: 8 kB / 419.3 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.308, allocations: 4 kB / 419.3 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.308, allocations: 4 kB / 419.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002968/0.3083, allocations: 71.89 kB / 419.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.3083, allocations: 4 kB / 419.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.3085, allocations: 31.78 kB / 419.4 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.3085, allocations: 15.98 kB / 419.4 MB, free: 6.684 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001953/0.3087, allocations: 141.8 kB / 419.5 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.971e-05/0.3087, allocations: 27.8 kB / 419.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004409/0.3092, allocations: 204.5 kB / 419.8 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3092, allocations: 4 kB / 419.8 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3092, allocations: 0 / 419.8 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.3092, allocations: 0 / 419.8 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008775/0.3101, allocations: 0.6117 MB / 420.4 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3101, allocations: 48 / 420.4 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002774/0.3104, allocations: 59.89 kB / 420.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3104, allocations: 0 / 420.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.3104, allocations: 8 kB / 420.4 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3104, allocations: 0 / 420.4 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3105, allocations: 0 / 420.4 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006333/0.3111, allocations: 384.8 kB / 420.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.206e-05/0.3112, allocations: 100.9 kB / 420.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.3112, allocations: 4.062 kB / 420.9 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/0.3114, allocations: 19.98 kB / 420.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.888e-05/0.3115, allocations: 15.92 kB / 421 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.3115, allocations: 7.984 kB / 421 MB, free: 4.996 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001532/0.3116, allocations: 156.6 kB / 421.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3116, allocations: 0 / 421.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003413/0.312, allocations: 83.72 kB / 421.2 MB, free: 4.762 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.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 (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009607/0.313, allocations: 0.9096 MB / 422.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004121/0.3134, allocations: 179.8 kB / 422.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3134, allocations: 0 / 422.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001811/0.3136, allocations: 83.83 kB / 422.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.3139, allocations: 36.31 kB / 422.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003919/0.3178, allocations: 2.809 MB / 425.2 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004595/0.3183, allocations: 0.7713 MB / 426 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.3184, allocations: 25.94 kB / 426 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.3186, allocations: 91.41 kB / 426.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3186, allocations: 0 / 426.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02873/0.3473, allocations: 4.656 MB / 430.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.06/8.407, allocations: 11.91 kB / 430.8 MB, free: 11.12 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1)