Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.702/1.702, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003574, allocations: 12 kB / 233.3 MB, free: 2.961 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08082/0.08122, allocations: 38.77 MB / 272 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance): time 0.004616/0.08589, allocations: 2.643 MB / 274.7 MB, free: 9.441 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002591/0.08853, allocations: 1.033 MB / 275.7 MB, free: 8.402 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002552/0.08884, allocations: 8 kB / 275.7 MB, free: 8.395 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004695/0.08932, allocations: 103.5 kB / 275.8 MB, free: 8.293 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002305/0.08957, allocations: 83.69 kB / 275.9 MB, free: 8.211 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001936/0.09152, allocations: 0.5874 MB / 276.5 MB, free: 7.625 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005646/0.0921, allocations: 219.5 kB / 276.7 MB, free: 7.41 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001891/0.09401, allocations: 0.6907 MB / 277.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003447/0.09438, allocations: 119.6 kB / 277.5 MB, free: 6.574 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/0.09469, allocations: 151.4 kB / 277.7 MB, free: 6.426 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.034e-05/0.09475, allocations: 20 kB / 277.7 MB, free: 6.406 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004327/0.0952, allocations: 111.8 kB / 277.8 MB, free: 6.297 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.324e-05/0.09528, allocations: 51.83 kB / 277.8 MB, free: 6.246 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.0954, allocations: 89.52 kB / 277.9 MB, free: 6.152 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007091/0.09612, allocations: 407.2 kB / 278.3 MB, free: 5.754 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.09614, allocations: 0 / 278.3 MB, free: 5.754 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.709e-06/0.09616, allocations: 4 kB / 278.3 MB, free: 5.75 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.09617, allocations: 0 / 278.3 MB, free: 5.75 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.002886/0.09907, allocations: 0.749 MB / 279.1 MB, free: 4.953 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.09914, allocations: 16.02 kB / 279.1 MB, free: 4.938 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001407/0.09929, allocations: 74.53 kB / 279.2 MB, free: 4.855 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003837/0.09969, allocations: 59.53 kB / 279.2 MB, free: 4.797 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004184/0.1001, allocations: 270.4 kB / 279.5 MB, free: 4.492 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.125e-05/0.1002, allocations: 29 kB / 279.5 MB, free: 4.461 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.418e-05/0.1003, allocations: 40 kB / 279.5 MB, free: 4.422 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.1013, allocations: 350.5 kB / 279.9 MB, free: 4.074 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.1014, allocations: 3.984 kB / 279.9 MB, free: 4.07 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.747e-05/0.1015, allocations: 19.98 kB / 279.9 MB, free: 4.051 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.1015, allocations: 8 kB / 279.9 MB, free: 4.043 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009735/0.1025, allocations: 291.8 kB / 280.2 MB, free: 3.762 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002962/0.1054, allocations: 1.328 MB / 281.5 MB, free: 2.336 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008549/0.1063, allocations: 190.7 kB / 281.7 MB, free: 2.141 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.1064, allocations: 0 / 281.7 MB, free: 2.141 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.1064, allocations: 42.45 kB / 281.8 MB, free: 2.09 MB / 234.7 MB Notification: Performance of pre-optimization done (n=16): time 1.754e-06/0.1064, allocations: 0 / 281.8 MB, free: 2.09 MB / 234.7 MB Notification: Performance of matching and sorting (n=16): time 0.002404/0.1089, allocations: 0.4912 MB / 282.3 MB, free: 1.57 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.1089, allocations: 55.41 kB / 282.3 MB, free: 1.504 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.1092, allocations: 164.1 kB / 282.5 MB, free: 1.328 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.1092, allocations: 37.7 kB / 282.5 MB, free: 1.285 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.1094, allocations: 270 kB / 282.8 MB, free: 1.02 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.102e-05/0.1095, allocations: 63.09 kB / 282.8 MB, free: 0.957 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.979e-05/0.1096, allocations: 4 kB / 282.8 MB, free: 0.9531 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1097, allocations: 318.8 kB / 283.1 MB, free: 0.6328 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.11, allocations: 75.89 kB / 283.2 MB, free: 0.5586 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003293/0.1103, allocations: 122.8 kB / 283.3 MB, free: 424 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003281/0.1107, allocations: 86.73 kB / 283.4 MB, free: 340 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.1107, allocations: 4 kB / 283.4 MB, free: 336 kB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00107/0.1118, allocations: 306 kB / 283.7 MB, free: 20 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.1118, allocations: 8 kB / 283.7 MB, free: 12 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1118, allocations: 3.953 kB / 283.7 MB, free: 8 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005665/0.1124, allocations: 96.94 kB / 283.8 MB, free: 15.91 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002881/0.1127, allocations: 35.97 kB / 283.9 MB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003143/0.1159, allocations: 1.87 MB / 285.7 MB, free: 13.87 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.1162, allocations: 27.73 kB / 285.8 MB, free: 13.84 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.855e-05/0.1163, allocations: 12 kB / 285.8 MB, free: 13.83 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (17): * Single equations (assignments): 16 * 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%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002516/0.1165, allocations: 153.7 kB / 285.9 MB, free: 13.67 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.895e-05/0.1166, allocations: 15.81 kB / 285.9 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.1177, allocations: 264.2 kB / 286.2 MB, free: 13.39 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.1177, allocations: 0 / 286.2 MB, free: 13.39 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.1177, allocations: 4 kB / 286.2 MB, free: 13.39 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1177, allocations: 7.984 kB / 286.2 MB, free: 13.38 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005916/0.1183, allocations: 333.4 kB / 286.5 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.1183, allocations: 3.953 kB / 286.5 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002182/0.1186, allocations: 15.98 kB / 286.6 MB, free: 12.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004818/0.1191, allocations: 84.75 kB / 286.6 MB, free: 12.9 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.1191, allocations: 4 kB / 286.6 MB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003063/0.1222, allocations: 1.867 MB / 288.5 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1222, allocations: 80 / 288.5 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.1236, allocations: 433.1 kB / 288.9 MB, free: 10.45 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.305e-05/0.1237, allocations: 97 kB / 289 MB, free: 10.34 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.18e-05/0.1237, allocations: 4 kB / 289 MB, free: 10.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.124, allocations: 19.98 kB / 289.1 MB, free: 10.32 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.654e-05/0.1241, allocations: 11.98 kB / 289.1 MB, free: 10.3 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1241, allocations: 7.938 kB / 289.1 MB, free: 10.3 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001567/0.1243, allocations: 128.2 kB / 289.2 MB, free: 10.17 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1243, allocations: 0 / 289.2 MB, free: 10.17 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006938/0.125, allocations: 95.62 kB / 289.3 MB, free: 10.08 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.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 (7): * Single equations (assignments): 6 * 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%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001757/0.1268, allocations: 0.991 MB / 290.3 MB, free: 9.055 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.1279, allocations: 342.5 kB / 290.6 MB, free: 8.707 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.128, allocations: 0 / 290.6 MB, free: 8.707 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006505/0.1286, allocations: 247 kB / 290.9 MB, free: 8.453 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.129, allocations: 15.94 kB / 290.9 MB, free: 8.438 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/0.1328, allocations: 1.482 MB / 292.4 MB, free: 6.879 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004625/0.1333, allocations: 0.7794 MB / 293.1 MB, free: 6.07 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001896/0.1335, allocations: 87.41 kB / 293.2 MB, free: 5.984 MB / 250.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1336, allocations: 0 / 293.2 MB, free: 5.984 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.61/2.744, allocations: 5.221 MB / 298.4 MB, free: 0.7578 MB / 250.7 MB "" Variables in the reference:time,inductor.pin_p.reference.gamma Variables in the result:V.k,V.y,capacitor.C,capacitor.i.im,capacitor.i.re,capacitor.omega,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,currentSensor.i.im,currentSensor.i.re,currentSensor.omega,currentSensor.pin_n.i.im,currentSensor.pin_n.i.re,currentSensor.pin_n.reference.gamma,currentSensor.pin_n.v.im,currentSensor.pin_n.v.re,currentSensor.pin_p.i.im,currentSensor.pin_p.i.re,currentSensor.pin_p.reference.gamma,currentSensor.pin_p.v.im,currentSensor.pin_p.v.re,currentSensor.v.im,currentSensor.v.re,currentSensor.y.im,currentSensor.y.re,der(voltageSource.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.i.im,inductor.i.re,inductor.omega,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.R_actual,resistor.R_ref,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha_ref,resistor.i.im,resistor.i.re,resistor.omega,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,voltageSource.V.im,voltageSource.V.re,voltageSource.f,voltageSource.i.im,voltageSource.i.re,voltageSource.omega,voltageSource.pin_n.i.im,voltageSource.pin_n.i.re,voltageSource.pin_n.reference.gamma,voltageSource.pin_n.v.im,voltageSource.pin_n.v.re,voltageSource.pin_p.i.im,voltageSource.pin_p.i.re,voltageSource.pin_p.reference.gamma,voltageSource.pin_p.v.im,voltageSource.pin_p.v.re,voltageSource.v.im,voltageSource.v.re