Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001371/0.001371, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 214.4 kB / 18.59 MB, free: 4.531 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.454/1.454, allocations: 227.7 MB / 247 MB, free: 10.29 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.002013/0.002014, allocations: 64.22 kB / 307.3 MB, free: 400 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1085, allocations: 50.54 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007319/0.1158, allocations: 5.397 MB / 363.3 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004208/0.1201, allocations: 1.52 MB / 364.8 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/0.1213, allocations: 31.81 kB / 364.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006601/0.122, allocations: 213.8 kB / 365 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008279/0.1229, allocations: 190 kB / 365.2 MB, free: 6.457 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.1242, allocations: 415.3 kB / 365.6 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002073/0.1263, allocations: 1.123 MB / 366.7 MB, free: 4.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007317/0.127, allocations: 484.2 kB / 367.2 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006413/0.1277, allocations: 406.3 kB / 367.6 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004786/0.1282, allocations: 433.5 kB / 368 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001309/0.1283, allocations: 80 kB / 368.1 MB, free: 3.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000252/0.1286, allocations: 104 kB / 368.2 MB, free: 3.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002088/0.1288, allocations: 211.1 kB / 368.4 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000519/0.1293, allocations: 0.4971 MB / 368.9 MB, free: 2.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001416/0.1307, allocations: 1.125 MB / 370 MB, free: 1.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.1308, allocations: 0 / 370 MB, free: 1.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.1308, allocations: 7.984 kB / 370.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.1308, allocations: 0 / 370.1 MB, free: 1.582 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002015/0.1328, allocations: 1.317 MB / 371.4 MB, free: 216 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.1329, allocations: 12.03 kB / 371.4 MB, free: 204 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001695/0.133, allocations: 152.2 kB / 371.5 MB, free: 44 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1623/0.2954, allocations: 139 kB / 371.7 MB, free: 19.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007951/0.2962, allocations: 0.6246 MB / 372.3 MB, free: 19.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.487e-05/0.2963, allocations: 72.66 kB / 372.4 MB, free: 19.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.2964, allocations: 98.83 kB / 372.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.2978, allocations: 1.029 MB / 373.5 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.2978, allocations: 14 kB / 373.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.2979, allocations: 47.59 kB / 373.5 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.323e-05/0.2979, allocations: 26.56 kB / 373.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.2989, allocations: 0.5548 MB / 374.1 MB, free: 19.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003333/0.3023, allocations: 5.526 MB / 379.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004588/0.3027, allocations: 227.2 kB / 379.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002585/0.303, allocations: 158.5 kB / 380 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001632/0.3032, allocations: 89.72 kB / 380.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.3032, allocations: 33.92 kB / 380.1 MB, free: 14.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.265e-06/0.3032, allocations: 0 / 380.1 MB, free: 14.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003256/0.3065, allocations: 1.723 MB / 381.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.584e-05/0.3065, allocations: 81.44 kB / 382 MB, free: 13.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007003/0.3072, allocations: 0.6389 MB / 382.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.3073, allocations: 36.14 kB / 382.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002883/0.3075, allocations: 0.6006 MB / 383.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.826e-05/0.3076, allocations: 151.1 kB / 383.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.3078, allocations: 135.2 kB / 383.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3079, allocations: 391.7 kB / 383.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002832/0.3082, allocations: 152.1 kB / 384 MB, free: 11.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003704/0.3086, allocations: 498 kB / 384.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006398/0.3092, allocations: 0.6997 MB / 385.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.3092, allocations: 3.188 kB / 385.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001038/0.3103, allocations: 0.7135 MB / 385.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.3103, allocations: 10.5 kB / 385.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.3103, allocations: 16.06 kB / 386 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.03e-05/0.3104, allocations: 21.2 kB / 386 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000577/0.311, allocations: 191.7 kB / 386.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.207e-05/0.311, allocations: 22.86 kB / 386.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003375/0.3113, allocations: 33.88 kB / 386.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.143e-05/0.3114, allocations: 40.42 kB / 386.3 MB, free: 10.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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.0002265/0.3116, allocations: 234.7 kB / 386.5 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.772e-05/0.3117, allocations: 78.94 kB / 386.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.3118, allocations: 73.78 kB / 386.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.3118, allocations: 5.484 kB / 386.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.3118, allocations: 1.125 kB / 386.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.3119, allocations: 1.688 kB / 386.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.3137, allocations: 1.338 MB / 388 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.3137, allocations: 1.906 kB / 388 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004388/0.3141, allocations: 99.03 kB / 388.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.3142, allocations: 3.25 kB / 388.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.3142, allocations: 14.44 kB / 388.1 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.3142, allocations: 7.062 kB / 388.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3142, allocations: 2.781 kB / 388.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008419/0.315, allocations: 0.702 MB / 388.8 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.326e-05/0.3151, allocations: 142 kB / 389 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.951e-05/0.3152, allocations: 13.67 kB / 389 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002824/0.3155, allocations: 24.66 kB / 389 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.228e-05/0.3156, allocations: 30.08 kB / 389 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.3156, allocations: 19.84 kB / 389 MB, free: 8.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004409/0.3161, allocations: 421.8 kB / 389.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3161, allocations: 0 / 389.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000689/0.3168, allocations: 141.8 kB / 389.6 MB, free: 8.328 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * 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.001014/0.3178, allocations: 1.249 MB / 390.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008454/0.3186, allocations: 453.3 kB / 391.3 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3186, allocations: 0 / 391.3 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002834/0.3189, allocations: 154.4 kB / 391.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005578/0.3195, allocations: 73.05 kB / 391.5 MB, free: 7.125 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008221/0.3277, allocations: 6.383 MB / 397.9 MB, free: 2.777 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000572/0.3284, allocations: 1 MB / 398.9 MB, free: 2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003329/0.3287, allocations: 97.52 kB / 399 MB, free: 1.949 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003906/0.3291, allocations: 392.8 kB / 399.4 MB, free: 1.613 MB / 302.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3291, allocations: 0 / 399.4 MB, free: 1.613 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03992/0.369, allocations: 11.44 MB / 410.8 MB, free: 8.242 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.083/8.452, allocations: 0 / 410.8 MB, free: 8.242 MB / 318.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits_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_ResonanceCircuits.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1)