Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003648/0.0003649, allocations: 8 kB / 233.2 MB, free: 2.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08527/0.08568, allocations: 38.78 MB / 272 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.004482/0.09022, allocations: 2.509 MB / 274.5 MB, free: 9.582 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002114/0.09239, allocations: 0.8003 MB / 275.3 MB, free: 8.781 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002503/0.09269, allocations: 8 kB / 275.3 MB, free: 8.773 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.09281, allocations: 43.67 kB / 275.4 MB, free: 8.73 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003831/0.09321, allocations: 115.6 kB / 275.5 MB, free: 8.617 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004725/0.0937, allocations: 99.88 kB / 275.6 MB, free: 8.52 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006256/0.09434, allocations: 360.8 kB / 275.9 MB, free: 8.164 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003198/0.09468, allocations: 127.6 kB / 276.1 MB, free: 8.035 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003429/0.09503, allocations: 175.4 kB / 276.2 MB, free: 7.863 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00039/0.09544, allocations: 227.1 kB / 276.5 MB, free: 7.641 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.921e-05/0.09554, allocations: 28 kB / 276.5 MB, free: 7.613 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.09571, allocations: 32 kB / 276.5 MB, free: 7.582 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.09583, allocations: 83.72 kB / 276.6 MB, free: 7.5 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001299/0.09597, allocations: 97.45 kB / 276.7 MB, free: 7.398 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006172/0.0966, allocations: 407.1 kB / 277.1 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.09662, allocations: 0 / 277.1 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.218e-06/0.09664, allocations: 4 kB / 277.1 MB, free: 6.996 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.09665, allocations: 0 / 277.1 MB, free: 6.996 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.002484/0.09914, allocations: 0.7486 MB / 277.8 MB, free: 6.199 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.09921, allocations: 12.03 kB / 277.9 MB, free: 6.188 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001435/0.09937, allocations: 74.53 kB / 277.9 MB, free: 6.105 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.09951, allocations: 47.44 kB / 278 MB, free: 6.059 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005336/0.1001, allocations: 301.3 kB / 278.3 MB, free: 5.723 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.489e-05/0.1001, allocations: 28.95 kB / 278.3 MB, free: 5.695 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.1002, allocations: 35.91 kB / 278.3 MB, free: 5.66 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/0.1021, allocations: 0.5357 MB / 278.9 MB, free: 5.102 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.1022, allocations: 8 kB / 278.9 MB, free: 5.094 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.999e-05/0.1023, allocations: 20 kB / 278.9 MB, free: 5.074 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.1023, allocations: 8 kB / 278.9 MB, free: 5.066 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002594/0.1049, allocations: 0.5621 MB / 279.5 MB, free: 4.504 MB / 234.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.004296/0.1092, allocations: 1.632 MB / 281.1 MB, free: 2.734 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002048/0.1113, allocations: 468.7 kB / 281.6 MB, free: 2.27 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.857e-05/0.1114, allocations: 12.31 kB / 281.6 MB, free: 2.258 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.1114, allocations: 34.89 kB / 281.6 MB, free: 2.215 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 3.226e-06/0.1114, allocations: 3.938 kB / 281.6 MB, free: 2.211 MB / 234.7 MB Notification: Performance of matching and sorting (n=40): time 0.009561/0.121, allocations: 1.542 MB / 283.2 MB, free: 0.6211 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.1212, allocations: 162.2 kB / 283.3 MB, free: 436 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005295/0.1217, allocations: 263 kB / 283.6 MB, free: 168 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.558e-05/0.1218, allocations: 33.7 kB / 283.6 MB, free: 128 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/0.122, allocations: 266.7 kB / 283.9 MB, free: 15.86 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.1222, allocations: 130 kB / 284 MB, free: 15.73 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.396e-05/0.1223, allocations: 12 kB / 284 MB, free: 15.72 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1225, allocations: 330.8 kB / 284.3 MB, free: 15.39 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.1235, allocations: 200.7 kB / 284.5 MB, free: 15.19 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.1246, allocations: 298.5 kB / 284.8 MB, free: 14.86 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.1256, allocations: 219.8 kB / 285 MB, free: 14.65 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.1257, allocations: 0 / 285 MB, free: 14.65 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003716/0.1294, allocations: 0.7564 MB / 285.8 MB, free: 13.88 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.1295, allocations: 4 kB / 285.8 MB, free: 13.88 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/0.1295, allocations: 4 kB / 285.8 MB, free: 13.87 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002343/0.1319, allocations: 337.4 kB / 286.1 MB, free: 13.54 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007074/0.1326, allocations: 91.88 kB / 286.2 MB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.1347, allocations: 1.358 MB / 287.6 MB, free: 12.04 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009305/0.1357, allocations: 99.62 kB / 287.7 MB, free: 11.94 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.263e-05/0.1358, allocations: 23.94 kB / 287.7 MB, free: 11.91 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 (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.0003095/0.1361, allocations: 161.7 kB / 287.8 MB, free: 11.75 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.1362, allocations: 35.62 kB / 287.9 MB, free: 11.71 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004031/0.1402, allocations: 0.8174 MB / 288.7 MB, free: 10.88 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.1403, allocations: 7.953 kB / 288.7 MB, free: 10.88 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.1403, allocations: 0 / 288.7 MB, free: 10.88 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.1403, allocations: 0 / 288.7 MB, free: 10.88 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009831/0.1413, allocations: 465 kB / 289.2 MB, free: 10.37 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.363e-06/0.1414, allocations: 3.984 kB / 289.2 MB, free: 10.37 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005885/0.142, allocations: 67.95 kB / 289.2 MB, free: 10.3 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002386/0.1444, allocations: 341.3 kB / 289.6 MB, free: 9.961 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.1445, allocations: 8 kB / 289.6 MB, free: 9.953 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002287/0.1468, allocations: 1.386 MB / 291 MB, free: 8.516 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.1469, allocations: 0 / 291 MB, free: 8.516 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006795/0.1537, allocations: 1.121 MB / 292.1 MB, free: 7.371 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003611/0.1541, allocations: 144.6 kB / 292.2 MB, free: 7.211 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.1543, allocations: 15.92 kB / 292.2 MB, free: 7.195 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.1554, allocations: 64.02 kB / 292.3 MB, free: 7.133 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.1555, allocations: 31.91 kB / 292.3 MB, free: 7.102 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.433e-05/0.1556, allocations: 8 kB / 292.3 MB, free: 7.094 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0005408/0.1562, allocations: 190 kB / 292.5 MB, free: 6.906 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.1562, allocations: 0 / 292.5 MB, free: 6.906 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0008166/0.157, allocations: 111.8 kB / 292.6 MB, free: 6.797 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 (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.006106/0.1631, allocations: 1.689 MB / 294.3 MB, free: 5.074 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002323/0.1655, allocations: 0.4996 MB / 294.8 MB, free: 4.574 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/0.1655, allocations: 320 / 294.8 MB, free: 4.574 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.1667, allocations: 287.6 kB / 295.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005283/0.1672, allocations: 40.67 kB / 295.1 MB, free: 4.254 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009696/0.177, allocations: 2.819 MB / 298 MB, free: 1.344 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005267/0.1775, allocations: 0.8076 MB / 298.8 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003121/0.1779, allocations: 127.4 kB / 298.9 MB, free: 396 kB / 250.7 MB Notification: Performance of SimCode: time 9.51e-07/0.1779, allocations: 0 / 298.9 MB, free: 396 kB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.928/3.106, allocations: 8.307 MB / 307.2 MB, free: 29.13 MB / 250.7 MB "Error: Could not read variable Sin.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat. Warning: Get data of variable Sin.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat failed! " 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