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.HeatingRectifier.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.HeatingRectifier,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.058/2.058, allocations: 194.9 MB / 211.1 MB, free: 8.547 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003743/0.0003744, allocations: 12 kB / 264 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2942, allocations: 44.51 MB / 308.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003485/0.2978, allocations: 2.006 MB / 310.6 MB, free: 10.74 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.2995, allocations: 0.6557 MB / 311.2 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001781/0.2997, allocations: 4 kB / 311.2 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.892e-05/0.2998, allocations: 19.83 kB / 311.2 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003532/0.3002, allocations: 87.73 kB / 311.3 MB, free: 9.965 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002506/0.3004, allocations: 63.81 kB / 311.4 MB, free: 9.902 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000348/0.3008, allocations: 187.6 kB / 311.6 MB, free: 9.719 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.301, allocations: 64.78 kB / 311.6 MB, free: 9.652 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002009/0.3012, allocations: 91.7 kB / 311.7 MB, free: 9.562 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.3014, allocations: 103.5 kB / 311.8 MB, free: 9.461 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.167e-05/0.3015, allocations: 16 kB / 311.8 MB, free: 9.445 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.3016, allocations: 23.98 kB / 311.9 MB, free: 9.422 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.289e-05/0.3017, allocations: 35.84 kB / 311.9 MB, free: 9.387 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.308e-05/0.3018, allocations: 65.58 kB / 312 MB, free: 9.316 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003253/0.3021, allocations: 208.4 kB / 312.2 MB, free: 9.113 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3021, allocations: 0 / 312.2 MB, free: 9.113 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.749e-06/0.3021, allocations: 0 / 312.2 MB, free: 9.113 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.3022, allocations: 3.938 kB / 312.2 MB, free: 9.109 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001068/0.3032, allocations: 498.9 kB / 312.7 MB, free: 8.574 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.3033, allocations: 8.031 kB / 312.7 MB, free: 8.566 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.68e-05/0.3034, allocations: 62.55 kB / 312.7 MB, free: 8.496 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.558e-05/0.3035, allocations: 23.72 kB / 312.8 MB, free: 8.473 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.3038, allocations: 243.2 kB / 313 MB, free: 8.195 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.748e-05/0.3039, allocations: 12.44 kB / 313 MB, free: 8.184 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.062e-05/0.304, allocations: 24 kB / 313 MB, free: 8.16 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005977/0.3046, allocations: 229.8 kB / 313.3 MB, free: 7.922 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.3046, allocations: 0 / 313.3 MB, free: 7.922 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.824e-05/0.3046, allocations: 12 kB / 313.3 MB, free: 7.91 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.3047, allocations: 7.938 kB / 313.3 MB, free: 7.902 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00052/0.3052, allocations: 153.7 kB / 313.4 MB, free: 7.754 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.002125/0.3073, allocations: 0.9946 MB / 314.4 MB, free: 6.656 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004847/0.3078, allocations: 150.5 kB / 314.6 MB, free: 6.5 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.3079, allocations: 4.094 kB / 314.6 MB, free: 6.496 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.3079, allocations: 42.5 kB / 314.6 MB, free: 6.445 MB / 250.7 MB Notification: Performance of pre-optimization done (n=17): time 3.357e-06/0.308, allocations: 0 / 314.6 MB, free: 6.445 MB / 250.7 MB Notification: Performance of matching and sorting (n=17): time 0.002132/0.3101, allocations: 427.4 kB / 315 MB, free: 6 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.3102, allocations: 51.41 kB / 315.1 MB, free: 5.938 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.3105, allocations: 178.7 kB / 315.3 MB, free: 5.75 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.3105, allocations: 33.64 kB / 315.3 MB, free: 5.711 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.3107, allocations: 152 kB / 315.4 MB, free: 5.559 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.197e-05/0.3107, allocations: 63.09 kB / 315.5 MB, free: 5.496 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.275e-05/0.3108, allocations: 0 / 315.5 MB, free: 5.496 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3109, allocations: 334.8 kB / 315.8 MB, free: 5.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.3112, allocations: 56.36 kB / 315.9 MB, free: 5.105 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.3114, allocations: 82.09 kB / 316 MB, free: 5.02 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000227/0.3117, allocations: 56 kB / 316 MB, free: 4.965 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.3117, allocations: 4 kB / 316 MB, free: 4.961 MB / 250.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0008028/0.3125, allocations: 244 kB / 316.3 MB, free: 4.715 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.3125, allocations: 4 kB / 316.3 MB, free: 4.711 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3125, allocations: 3.938 kB / 316.3 MB, free: 4.707 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002283/0.3148, allocations: 220.7 kB / 316.5 MB, free: 4.488 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003022/0.3152, allocations: 35.94 kB / 316.5 MB, free: 4.453 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007175/0.3159, allocations: 0.6108 MB / 317.1 MB, free: 3.816 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.3162, allocations: 27.91 kB / 317.2 MB, free: 3.789 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.3162, allocations: 8 kB / 317.2 MB, free: 3.781 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (15): * Single equations (assignments): 14 * 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: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001847/0.3164, allocations: 129.8 kB / 317.3 MB, free: 3.645 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.922e-05/0.3165, allocations: 19.77 kB / 317.3 MB, free: 3.625 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007359/0.3172, allocations: 236.2 kB / 317.5 MB, free: 3.383 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.3172, allocations: 4 kB / 317.5 MB, free: 3.379 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.3172, allocations: 0 / 317.5 MB, free: 3.379 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3173, allocations: 0 / 317.5 MB, free: 3.379 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004702/0.3177, allocations: 289.4 kB / 317.8 MB, free: 3.047 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.3178, allocations: 3.984 kB / 317.8 MB, free: 3.043 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002877/0.3181, allocations: 27.98 kB / 317.9 MB, free: 3.016 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002038/0.3201, allocations: 232.4 kB / 318.1 MB, free: 2.785 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.3202, allocations: 8 kB / 318.1 MB, free: 2.777 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006778/0.3209, allocations: 0.6109 MB / 318.7 MB, free: 2.141 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3209, allocations: 8.031 kB / 318.7 MB, free: 2.133 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009433/0.3218, allocations: 394.3 kB / 319.1 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.322, allocations: 108.9 kB / 319.2 MB, free: 1.605 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.376e-05/0.3221, allocations: 4 kB / 319.2 MB, free: 1.602 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002518/0.3223, allocations: 12 kB / 319.2 MB, free: 1.59 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.237e-05/0.3224, allocations: 8.047 kB / 319.2 MB, free: 1.582 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.3224, allocations: 8 kB / 319.2 MB, free: 1.574 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001616/0.3226, allocations: 136.3 kB / 319.4 MB, free: 1.441 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3226, allocations: 0 / 319.4 MB, free: 1.441 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004566/0.3231, allocations: 63.84 kB / 319.4 MB, free: 1.379 MB / 250.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 (10): * Single equations (assignments): 9 * 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: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001316/0.3244, allocations: 0.9307 MB / 320.4 MB, free: 432 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006322/0.3251, allocations: 162.7 kB / 320.5 MB, free: 272 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3251, allocations: 192 / 320.5 MB, free: 272 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003122/0.3254, allocations: 91.95 kB / 320.6 MB, free: 180 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.3258, allocations: 24.17 kB / 320.6 MB, free: 156 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003277/0.3291, allocations: 1.362 MB / 322 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003979/0.3295, allocations: 0.748 MB / 322.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.3297, allocations: 13.55 kB / 322.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.3298, allocations: 59.5 kB / 322.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of SimCode: time 3.095e-06/0.3298, allocations: 4.047 kB / 322.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02825/0.3581, allocations: 4.269 MB / 327.1 MB, free: 9.648 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003243/0.3585, allocations: 204.2 kB / 327.3 MB, free: 9.414 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.538/2.897, allocations: 3.938 kB / 327.3 MB, free: 9.41 MB / 266.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,G.p.i,G.p.v,HeatCapacitor1.C,HeatCapacitor1.T,HeatCapacitor1.der_T,HeatCapacitor1.port.Q_flow,HeatCapacitor1.port.T,HeatingDiode1.EG,HeatingDiode1.Ids,HeatingDiode1.LossPower,HeatingDiode1.Maxexp,HeatingDiode1.N,HeatingDiode1.R,HeatingDiode1.T,HeatingDiode1.TNOM,HeatingDiode1.T_heatPort,HeatingDiode1.XTI,HeatingDiode1.aux,HeatingDiode1.auxp,HeatingDiode1.heatPort.Q_flow,HeatingDiode1.heatPort.T,HeatingDiode1.htemp,HeatingDiode1.i,HeatingDiode1.id,HeatingDiode1.maxexp,HeatingDiode1.n.i,HeatingDiode1.n.v,HeatingDiode1.p.i,HeatingDiode1.p.v,HeatingDiode1.useHeatPort,HeatingDiode1.v,HeatingDiode1.vt_t,R.LossPower,R.R,R.R_actual,R.T,R.T_heatPort,R.T_ref,R.alpha,R.i,R.n.i,R.n.v,R.p.i,R.p.v,R.useHeatPort,R.v,SineVoltage1.V,SineVoltage1.freqHz,SineVoltage1.i,SineVoltage1.n.i,SineVoltage1.n.v,SineVoltage1.offset,SineVoltage1.p.i,SineVoltage1.p.v,SineVoltage1.phase,SineVoltage1.signalSource.amplitude,SineVoltage1.signalSource.freqHz,SineVoltage1.signalSource.offset,SineVoltage1.signalSource.phase,SineVoltage1.signalSource.startTime,SineVoltage1.signalSource.y,SineVoltage1.startTime,SineVoltage1.v,ThermalConductor1.G,ThermalConductor1.Q_flow,ThermalConductor1.dT,ThermalConductor1.port_a.Q_flow,ThermalConductor1.port_a.T,ThermalConductor1.port_b.Q_flow,ThermalConductor1.port_b.T,der(Capacitor1.v),der(HeatCapacitor1.T),time