Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.928/1.928, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003375/0.0003375, allocations: 8 kB / 264 MB, free: 2.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2836, allocations: 44.51 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.004319/0.288, allocations: 2.521 MB / 311.1 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.2901, allocations: 0.7932 MB / 311.9 MB, free: 9.312 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002938/0.2905, allocations: 15.88 kB / 311.9 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001131/0.2906, allocations: 47.67 kB / 311.9 MB, free: 9.25 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003822/0.291, allocations: 111.7 kB / 312 MB, free: 9.141 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.2915, allocations: 107.8 kB / 312.2 MB, free: 9.035 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006456/0.2922, allocations: 344.9 kB / 312.5 MB, free: 8.699 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003282/0.2925, allocations: 127.7 kB / 312.6 MB, free: 8.57 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003747/0.2929, allocations: 187.4 kB / 312.8 MB, free: 8.387 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004015/0.2933, allocations: 215.2 kB / 313 MB, free: 8.176 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.77e-05/0.2934, allocations: 28 kB / 313 MB, free: 8.148 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.2936, allocations: 28 kB / 313.1 MB, free: 8.121 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.2937, allocations: 87.7 kB / 313.1 MB, free: 8.035 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.2938, allocations: 109.4 kB / 313.3 MB, free: 7.922 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005903/0.2944, allocations: 399.8 kB / 313.6 MB, free: 7.531 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2945, allocations: 0 / 313.6 MB, free: 7.531 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2945, allocations: 0 / 313.6 MB, free: 7.531 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.2945, allocations: 0 / 313.6 MB, free: 7.531 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.002464/0.297, allocations: 0.7564 MB / 314.4 MB, free: 6.723 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.297, allocations: 8.031 kB / 314.4 MB, free: 6.715 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001534/0.2972, allocations: 74.53 kB / 314.5 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.2973, allocations: 51.44 kB / 314.5 MB, free: 6.582 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005187/0.2979, allocations: 301.3 kB / 314.8 MB, free: 6.246 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.491e-05/0.2979, allocations: 29 kB / 314.9 MB, free: 6.219 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.986e-05/0.298, allocations: 36 kB / 314.9 MB, free: 6.184 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001851/0.2999, allocations: 0.524 MB / 315.4 MB, free: 5.641 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.3, allocations: 0 / 315.4 MB, free: 5.641 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.549e-05/0.3, allocations: 20 kB / 315.4 MB, free: 5.621 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.3001, allocations: 8 kB / 315.4 MB, free: 5.613 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002633/0.3027, allocations: 0.566 MB / 316 MB, free: 5.043 MB / 250.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004371/0.3071, allocations: 1.648 MB / 317.7 MB, free: 3.258 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002034/0.3092, allocations: 467.6 kB / 318.1 MB, free: 2.793 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.539e-05/0.3093, allocations: 12.31 kB / 318.1 MB, free: 2.781 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.3093, allocations: 34.89 kB / 318.2 MB, free: 2.738 MB / 250.7 MB Notification: Performance of pre-optimization done (n=40): time 3.497e-06/0.3093, allocations: 0 / 318.2 MB, free: 2.738 MB / 250.7 MB Notification: Performance of matching and sorting (n=40): time 0.009527/0.3189, allocations: 1.531 MB / 319.7 MB, free: 1.16 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.319, allocations: 162.2 kB / 319.8 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005235/0.3196, allocations: 266.9 kB / 320.1 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.405e-05/0.3197, allocations: 37.7 kB / 320.1 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.3199, allocations: 208.4 kB / 320.3 MB, free: 456 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.3201, allocations: 134 kB / 320.5 MB, free: 320 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.656e-05/0.3201, allocations: 7.938 kB / 320.5 MB, free: 312 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.3203, allocations: 346.8 kB / 320.8 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.3214, allocations: 204.8 kB / 321 MB, free: 15.76 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.3226, allocations: 294.5 kB / 321.3 MB, free: 15.44 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.3237, allocations: 219.8 kB / 321.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.3237, allocations: 0 / 321.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003836/0.3276, allocations: 0.7756 MB / 322.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.3276, allocations: 8 kB / 322.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3277, allocations: 0 / 322.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00237/0.33, allocations: 337.4 kB / 322.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007271/0.3308, allocations: 91.88 kB / 322.7 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002221/0.3331, allocations: 1.362 MB / 324.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009159/0.334, allocations: 91.72 kB / 324.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.018e-05/0.3341, allocations: 16 kB / 324.2 MB, free: 12.48 MB / 266.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 (33): * Single equations (assignments): 31 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003014/0.3344, allocations: 157.7 kB / 324.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.3345, allocations: 39.61 kB / 324.4 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004091/0.3386, allocations: 0.8175 MB / 325.2 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.3387, allocations: 8 kB / 325.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.3387, allocations: 0 / 325.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/0.3387, allocations: 3.984 kB / 325.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009415/0.3397, allocations: 461.1 kB / 325.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3397, allocations: 0 / 325.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006129/0.3404, allocations: 75.84 kB / 325.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002292/0.3427, allocations: 333.4 kB / 326.1 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.779e-05/0.3428, allocations: 12 kB / 326.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/0.3449, allocations: 1.386 MB / 327.5 MB, free: 9.078 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.335e-06/0.345, allocations: 3.953 kB / 327.5 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005015/0.35, allocations: 1.125 MB / 328.6 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.3502, allocations: 112.6 kB / 328.7 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.3503, allocations: 11.95 kB / 328.7 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007234/0.351, allocations: 60.02 kB / 328.8 MB, free: 7.727 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.833e-05/0.3511, allocations: 27.95 kB / 328.8 MB, free: 7.699 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.738e-05/0.3512, allocations: 8 kB / 328.8 MB, free: 7.691 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003858/0.3516, allocations: 190 kB / 329 MB, free: 7.508 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3516, allocations: 0 / 329 MB, free: 7.508 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006035/0.3522, allocations: 111.7 kB / 329.1 MB, free: 7.398 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * 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 (22): * Single equations (assignments): 20 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.005397/0.3576, allocations: 1.681 MB / 330.8 MB, free: 5.684 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002372/0.3601, allocations: 0.5112 MB / 331.3 MB, free: 5.172 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.3601, allocations: 0 / 331.3 MB, free: 5.172 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.3613, allocations: 276.1 kB / 331.6 MB, free: 4.902 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005071/0.3618, allocations: 40.58 kB / 331.6 MB, free: 4.863 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009244/0.3711, allocations: 2.793 MB / 334.4 MB, free: 1.988 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004974/0.3717, allocations: 0.8037 MB / 335.2 MB, free: 1.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002932/0.372, allocations: 34.97 kB / 335.2 MB, free: 1.129 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002598/0.3722, allocations: 119.4 kB / 335.4 MB, free: 1.012 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.3722, allocations: 0 / 335.4 MB, free: 1.012 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03987/0.4121, allocations: 8.34 MB / 343.7 MB, free: 8.703 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002886/0.4125, allocations: 218.4 kB / 343.9 MB, free: 8.457 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.626/3.038, allocations: 0 / 343.9 MB, free: 8.457 MB / 282.7 MB "" Variables in the reference:time,Capacitor1.v,HeatCapacitor1.T Variables in the result:Capacitor1.C,Capacitor1.i,Capacitor1.n.i,Capacitor1.n.v,Capacitor1.p.i,Capacitor1.p.v,Capacitor1.v,FixedTemperature1.T,FixedTemperature1.port.Q_flow,FixedTemperature1.port.T,G.p.i,G.p.v,H_NMOS.B.i,H_NMOS.B.v,H_NMOS.Beta,H_NMOS.D.i,H_NMOS.D.v,H_NMOS.G.i,H_NMOS.G.v,H_NMOS.K2,H_NMOS.K5,H_NMOS.L,H_NMOS.LossPower,H_NMOS.RDS,H_NMOS.S.i,H_NMOS.S.v,H_NMOS.T,H_NMOS.T_heatPort,H_NMOS.Tnom,H_NMOS.Vt,H_NMOS.W,H_NMOS.beta_t,H_NMOS.dL,H_NMOS.dW,H_NMOS.gds,H_NMOS.heatPort.Q_flow,H_NMOS.heatPort.T,H_NMOS.id,H_NMOS.k2_t,H_NMOS.kk2,H_NMOS.kvt,H_NMOS.ubs,H_NMOS.ud,H_NMOS.uds,H_NMOS.ugst,H_NMOS.us,H_NMOS.useHeatPort,H_NMOS.v,H_NMOS.vt_t,H_PMOS.B.i,H_PMOS.B.v,H_PMOS.Beta,H_PMOS.D.i,H_PMOS.D.v,H_PMOS.G.i,H_PMOS.G.v,H_PMOS.K2,H_PMOS.K5,H_PMOS.L,H_PMOS.LossPower,H_PMOS.RDS,H_PMOS.S.i,H_PMOS.S.v,H_PMOS.T,H_PMOS.T_heatPort,H_PMOS.Tnom,H_PMOS.Vt,H_PMOS.W,H_PMOS.beta_t,H_PMOS.dL,H_PMOS.dW,H_PMOS.gds,H_PMOS.heatPort.Q_flow,H_PMOS.heatPort.T,H_PMOS.id,H_PMOS.k2_t,H_PMOS.kk2,H_PMOS.kvt,H_PMOS.ubs,H_PMOS.ud,H_PMOS.uds,H_PMOS.ugst,H_PMOS.us,H_PMOS.useHeatPort,H_PMOS.v,H_PMOS.vt_t,HeatCapacitor1.C,HeatCapacitor1.T,HeatCapacitor1.der_T,HeatCapacitor1.port.Q_flow,HeatCapacitor1.port.T,Sin.V,Sin.freqHz,Sin.i,Sin.n.i,Sin.n.v,Sin.offset,Sin.p.i,Sin.p.v,Sin.phase,Sin.signalSource.amplitude,Sin.signalSource.freqHz,Sin.signalSource.offset,Sin.signalSource.phase,Sin.signalSource.startTime,Sin.signalSource.y,Sin.startTime,Sin.v,TC1.G,TC1.Q_flow,TC1.dT,TC1.port_a.Q_flow,TC1.port_a.T,TC1.port_b.Q_flow,TC1.port_b.T,TC2.G,TC2.Q_flow,TC2.dT,TC2.port_a.Q_flow,TC2.port_a.T,TC2.port_b.Q_flow,TC2.port_b.T,TC3.G,TC3.Q_flow,TC3.dT,TC3.port_a.Q_flow,TC3.port_a.T,TC3.port_b.Q_flow,TC3.port_b.T,V.V,V.duration,V.i,V.n.i,V.n.v,V.offset,V.p.i,V.p.v,V.signalSource.duration,V.signalSource.height,V.signalSource.offset,V.signalSource.startTime,V.signalSource.y,V.startTime,V.v,der(Capacitor1.v),der(HeatCapacitor1.T),time