Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 194.9 MB / 211.1 MB, free: 7.5 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.000342, allocations: 8 kB / 264.1 MB, free: 2.418 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2862, allocations: 44.51 MB / 308.6 MB, free: 12.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance): time 0.005296/0.2915, allocations: 3.066 MB / 311.6 MB, free: 9.551 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003288/0.2949, allocations: 1.295 MB / 312.9 MB, free: 8.25 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003459/0.2952, allocations: 8 kB / 312.9 MB, free: 8.242 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005155/0.2958, allocations: 123.3 kB / 313.1 MB, free: 8.121 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001823/0.2976, allocations: 482.6 kB / 313.5 MB, free: 7.648 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.2989, allocations: 347 kB / 313.9 MB, free: 7.309 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007858/0.2997, allocations: 335.3 kB / 314.2 MB, free: 6.98 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00212/0.3018, allocations: 0.6919 MB / 314.9 MB, free: 6.258 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004641/0.3023, allocations: 183.3 kB / 315.1 MB, free: 6.078 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004796/0.3028, allocations: 239.1 kB / 315.3 MB, free: 5.844 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.457e-05/0.3029, allocations: 20 kB / 315.3 MB, free: 5.824 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005565/0.3035, allocations: 151.8 kB / 315.5 MB, free: 5.676 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.741e-05/0.3036, allocations: 83.66 kB / 315.5 MB, free: 5.594 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.3037, allocations: 97.52 kB / 315.6 MB, free: 5.492 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008907/0.3046, allocations: 0.5229 MB / 316.2 MB, free: 4.969 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.3046, allocations: 4 kB / 316.2 MB, free: 4.965 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.187e-06/0.3046, allocations: 3.938 kB / 316.2 MB, free: 4.961 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.3047, allocations: 3.938 kB / 316.2 MB, free: 4.957 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002921/0.3076, allocations: 0.8349 MB / 317 MB, free: 4.074 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.3077, allocations: 12.03 kB / 317 MB, free: 4.062 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002353/0.3079, allocations: 107.7 kB / 317.1 MB, free: 3.949 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006348/0.3143, allocations: 0.5926 MB / 317.7 MB, free: 3.355 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006635/0.315, allocations: 314.3 kB / 318 MB, free: 3.008 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.564e-05/0.315, allocations: 45.31 kB / 318.1 MB, free: 2.961 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/0.3152, allocations: 56 kB / 318.1 MB, free: 2.906 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.3169, allocations: 0.5726 MB / 318.7 MB, free: 2.328 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.07e-05/0.3169, allocations: 0 / 318.7 MB, free: 2.328 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.985e-05/0.317, allocations: 27.94 kB / 318.7 MB, free: 2.301 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.3171, allocations: 16 kB / 318.7 MB, free: 2.285 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001953/0.319, allocations: 0.6532 MB / 319.4 MB, free: 1.633 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00499/0.324, allocations: 2.063 MB / 321.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003885/0.328, allocations: 2.992 MB / 324.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001451/0.3281, allocations: 93.52 kB / 324.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.3282, allocations: 38.95 kB / 324.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 3.607e-06/0.3282, allocations: 0 / 324.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002897/0.3311, allocations: 0.782 MB / 325.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.3312, allocations: 55.84 kB / 325.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.3315, allocations: 206.4 kB / 325.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.454e-05/0.3315, allocations: 41.7 kB / 325.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000184/0.3317, allocations: 236.1 kB / 325.9 MB, free: 10.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/0.3319, allocations: 165.6 kB / 326 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.414e-05/0.332, allocations: 12 kB / 326.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3322, allocations: 334.8 kB / 326.4 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005377/0.3327, allocations: 169 kB / 326.6 MB, free: 9.688 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006416/0.3334, allocations: 285.9 kB / 326.8 MB, free: 9.363 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006253/0.334, allocations: 204.8 kB / 327 MB, free: 9.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.334, allocations: 4 kB / 327 MB, free: 9.156 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001803/0.3358, allocations: 0.602 MB / 327.6 MB, free: 8.547 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.3359, allocations: 6.812 kB / 327.6 MB, free: 8.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.3359, allocations: 4 kB / 327.6 MB, free: 8.539 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005196/0.3364, allocations: 80.94 kB / 327.7 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008325/0.3373, allocations: 115.8 kB / 327.8 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002534/0.3398, allocations: 1.663 MB / 329.5 MB, free: 6.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004911/0.3403, allocations: 63.38 kB / 329.6 MB, free: 6.488 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.033e-05/0.3404, allocations: 20 kB / 329.6 MB, free: 6.469 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003073/0.3407, allocations: 177.7 kB / 329.8 MB, free: 6.285 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.547e-05/0.3408, allocations: 31.7 kB / 329.8 MB, free: 6.254 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.3427, allocations: 0.5707 MB / 330.4 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.3427, allocations: 8 kB / 330.4 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3427, allocations: 0 / 330.4 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.3428, allocations: 3.984 kB / 330.4 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002837/0.3456, allocations: 1.204 MB / 331.6 MB, free: 4.398 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3456, allocations: 0 / 331.6 MB, free: 4.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006956/0.3463, allocations: 87.89 kB / 331.7 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004499/0.3468, allocations: 76.81 kB / 331.7 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.725e-05/0.3469, allocations: 11.98 kB / 331.7 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00245/0.3493, allocations: 1.659 MB / 333.4 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.3494, allocations: 3.953 kB / 333.4 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002378/0.3518, allocations: 0.835 MB / 334.2 MB, free: 1.574 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.3519, allocations: 108.6 kB / 334.4 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.452e-05/0.352, allocations: 15.98 kB / 334.4 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.3524, allocations: 16 kB / 334.4 MB, free: 1.418 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.3526, allocations: 40.38 kB / 334.4 MB, free: 1.375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.663e-05/0.3526, allocations: 12 kB / 334.4 MB, free: 1.363 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001974/0.3528, allocations: 139.2 kB / 334.6 MB, free: 1.227 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.3529, allocations: 0 / 334.6 MB, free: 1.227 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000762/0.3536, allocations: 159.6 kB / 334.7 MB, free: 1.07 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002877/0.3565, allocations: 1.415 MB / 336.1 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.3583, allocations: 0.6088 MB / 336.8 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3584, allocations: 0 / 336.8 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009913/0.3594, allocations: 393.8 kB / 337.1 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.3597, allocations: 23.19 kB / 337.2 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005354/0.3651, allocations: 2.314 MB / 339.5 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005431/0.3657, allocations: 0.837 MB / 340.3 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004027/0.3661, allocations: 47.27 kB / 340.4 MB, free: 11.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000327/0.3664, allocations: 147.5 kB / 340.5 MB, free: 11.12 MB / 282.7 MB Notification: Performance of SimCode: time 8.32e-07/0.3665, allocations: 7.938 kB / 340.5 MB, free: 11.12 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03196/0.3984, allocations: 7.092 MB / 347.6 MB, free: 4.062 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003304/0.3988, allocations: 233.1 kB / 347.8 MB, free: 3.816 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.701/3.1, allocations: 0 / 347.8 MB, free: 3.816 MB / 282.7 MB "" Variables in the reference:time,resistor.pin_p.reference.gamma Variables in the result:I.k,I.y,V_abs,V_arg,capacitor.C,capacitor.P,capacitor.Q,capacitor.S,capacitor.abs_i,capacitor.abs_v,capacitor.arg_i,capacitor.arg_v,capacitor.i.im,capacitor.i.re,capacitor.omega,capacitor.pf,capacitor.pin_n.i.im,capacitor.pin_n.i.re,capacitor.pin_n.reference.gamma,capacitor.pin_n.v.im,capacitor.pin_n.v.re,capacitor.pin_p.i.im,capacitor.pin_p.i.re,capacitor.pin_p.reference.gamma,capacitor.pin_p.v.im,capacitor.pin_p.v.re,capacitor.v.im,capacitor.v.re,complexToPolar.len,complexToPolar.phi,complexToPolar.u.im,complexToPolar.u.re,complexToPolar.useConjugateInput,currentSource.I.im,currentSource.I.re,currentSource.P,currentSource.Q,currentSource.S,currentSource.abs_i,currentSource.abs_v,currentSource.arg_i,currentSource.arg_v,currentSource.f,currentSource.gamma,currentSource.i.im,currentSource.i.re,currentSource.omega,currentSource.pf,currentSource.pin_n.i.im,currentSource.pin_n.i.re,currentSource.pin_n.reference.gamma,currentSource.pin_n.v.im,currentSource.pin_n.v.re,currentSource.pin_p.i.im,currentSource.pin_p.i.re,currentSource.pin_p.reference.gamma,currentSource.pin_p.v.im,currentSource.pin_p.v.re,currentSource.v.im,currentSource.v.re,der(currentSource.pin_p.reference.gamma),f.duration,f.height,f.offset,f.startTime,f.y,ground.pin.i.im,ground.pin.i.re,ground.pin.reference.gamma,ground.pin.v.im,ground.pin.v.re,inductor.L,inductor.P,inductor.Q,inductor.S,inductor.abs_i,inductor.abs_v,inductor.arg_i,inductor.arg_v,inductor.i.im,inductor.i.re,inductor.omega,inductor.pf,inductor.pin_n.i.im,inductor.pin_n.i.re,inductor.pin_n.reference.gamma,inductor.pin_n.v.im,inductor.pin_n.v.re,inductor.pin_p.i.im,inductor.pin_p.i.re,inductor.pin_p.reference.gamma,inductor.pin_p.v.im,inductor.pin_p.v.re,inductor.v.im,inductor.v.re,phi.k,phi.y,polarToComplex.len,polarToComplex.phi,polarToComplex.y.im,polarToComplex.y.re,resistor.LossPower,resistor.P,resistor.Q,resistor.R_actual,resistor.R_ref,resistor.S,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.abs_i,resistor.abs_v,resistor.alpha_ref,resistor.arg_i,resistor.arg_v,resistor.i.im,resistor.i.re,resistor.omega,resistor.pf,resistor.pin_n.i.im,resistor.pin_n.i.re,resistor.pin_n.reference.gamma,resistor.pin_n.v.im,resistor.pin_n.v.re,resistor.pin_p.i.im,resistor.pin_p.i.re,resistor.pin_p.reference.gamma,resistor.pin_p.v.im,resistor.pin_p.v.re,resistor.useHeatPort,resistor.v.im,resistor.v.re,time,voltageSensor.P,voltageSensor.Q,voltageSensor.S,voltageSensor.abs_i,voltageSensor.abs_v,voltageSensor.abs_y,voltageSensor.arg_i,voltageSensor.arg_v,voltageSensor.arg_y,voltageSensor.i.im,voltageSensor.i.re,voltageSensor.omega,voltageSensor.pf,voltageSensor.pin_n.i.im,voltageSensor.pin_n.i.re,voltageSensor.pin_n.reference.gamma,voltageSensor.pin_n.v.im,voltageSensor.pin_n.v.re,voltageSensor.pin_p.i.im,voltageSensor.pin_p.i.re,voltageSensor.pin_p.reference.gamma,voltageSensor.pin_p.v.im,voltageSensor.pin_p.v.re,voltageSensor.v.im,voltageSensor.v.re,voltageSensor.y.im,voltageSensor.y.re