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.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.749/1.749, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004929/0.0004931, allocations: 8 kB / 233.2 MB, free: 2.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08391/0.08445, allocations: 38.77 MB / 272 MB, free: 12.13 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004754/0.08926, allocations: 2.801 MB / 274.8 MB, free: 9.305 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.0913, allocations: 0.7759 MB / 275.6 MB, free: 8.527 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002382/0.09159, allocations: 7.938 kB / 275.6 MB, free: 8.52 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.09173, allocations: 47.59 kB / 275.6 MB, free: 8.473 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004671/0.09221, allocations: 167.5 kB / 275.8 MB, free: 8.309 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003445/0.09256, allocations: 79.91 kB / 275.9 MB, free: 8.23 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006149/0.09319, allocations: 343.2 kB / 276.2 MB, free: 7.895 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002926/0.09351, allocations: 114.6 kB / 276.3 MB, free: 7.777 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002947/0.09381, allocations: 159.4 kB / 276.5 MB, free: 7.621 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.09414, allocations: 183.2 kB / 276.7 MB, free: 7.441 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.578e-05/0.09423, allocations: 20 kB / 276.7 MB, free: 7.422 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.987e-05/0.09434, allocations: 24 kB / 276.7 MB, free: 7.398 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.09448, allocations: 63.69 kB / 276.8 MB, free: 7.336 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.09461, allocations: 105.5 kB / 276.9 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005133/0.09514, allocations: 359.2 kB / 277.2 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.09515, allocations: 0 / 277.2 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.09516, allocations: 0 / 277.2 MB, free: 6.875 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.09518, allocations: 0 / 277.2 MB, free: 6.875 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001547/0.09673, allocations: 0.6583 MB / 277.9 MB, free: 6.168 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.0968, allocations: 12.03 kB / 277.9 MB, free: 6.156 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/0.09692, allocations: 70.53 kB / 278 MB, free: 6.078 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.09705, allocations: 47.44 kB / 278 MB, free: 6.031 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.09758, allocations: 306.2 kB / 278.3 MB, free: 5.688 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.09763, allocations: 24.61 kB / 278.3 MB, free: 5.664 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.867e-05/0.09771, allocations: 36 kB / 278.4 MB, free: 5.629 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.09877, allocations: 354.7 kB / 278.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.09881, allocations: 0 / 278.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.983e-05/0.09888, allocations: 20 kB / 278.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.09891, allocations: 8 kB / 278.7 MB, free: 5.234 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009825/0.0999, allocations: 282.4 kB / 279 MB, free: 4.961 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0032/0.1031, allocations: 1.43 MB / 280.5 MB, free: 3.43 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000724/0.1039, allocations: 237.8 kB / 280.7 MB, free: 3.191 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.399e-05/0.104, allocations: 0 / 280.7 MB, free: 3.191 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.649e-05/0.104, allocations: 50.48 kB / 280.7 MB, free: 3.133 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 2.024e-06/0.104, allocations: 0 / 280.7 MB, free: 3.133 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.002674/0.1067, allocations: 0.7063 MB / 281.4 MB, free: 2.355 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.1068, allocations: 59.36 kB / 281.5 MB, free: 2.285 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005065/0.1073, allocations: 304.6 kB / 281.8 MB, free: 1.984 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.506e-05/0.1074, allocations: 29.7 kB / 281.8 MB, free: 1.949 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002101/0.1076, allocations: 262.5 kB / 282.1 MB, free: 1.691 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.1077, allocations: 74.91 kB / 282.2 MB, free: 1.617 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.177e-05/0.1078, allocations: 8 kB / 282.2 MB, free: 1.609 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.1079, allocations: 322.8 kB / 282.5 MB, free: 1.285 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003677/0.1083, allocations: 83.95 kB / 282.6 MB, free: 1.203 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004028/0.1087, allocations: 136.2 kB / 282.7 MB, free: 1.055 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003895/0.1091, allocations: 95.91 kB / 282.8 MB, free: 0.9609 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.1091, allocations: 0 / 282.8 MB, free: 0.9609 MB / 234.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001359/0.1105, allocations: 351.7 kB / 283.1 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.1105, allocations: 9.469 kB / 283.1 MB, free: 0.5938 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.1106, allocations: 4 kB / 283.1 MB, free: 0.5898 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006658/0.1112, allocations: 118.4 kB / 283.3 MB, free: 476 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003193/0.1116, allocations: 31.97 kB / 283.3 MB, free: 444 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005566/0.1172, allocations: 4.476 MB / 287.8 MB, free: 11.55 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004293/0.1176, allocations: 35.95 kB / 287.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-05/0.1177, allocations: 15.95 kB / 287.8 MB, free: 11.5 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002679/0.118, allocations: 149.8 kB / 288 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.986e-05/0.1181, allocations: 35.62 kB / 288 MB, free: 11.31 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.361e-05/0.1182, allocations: 43.16 kB / 288 MB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.1182, allocations: 4 kB / 288 MB, free: 11.26 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.1182, allocations: 0 / 288 MB, free: 11.26 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1182, allocations: 0 / 288 MB, free: 11.26 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006771/0.1189, allocations: 381.2 kB / 288.4 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.1189, allocations: 0 / 288.4 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002464/0.1192, allocations: 23.98 kB / 288.4 MB, free: 10.82 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006037/0.1198, allocations: 118.8 kB / 288.6 MB, free: 10.69 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.886e-05/0.1199, allocations: 7.984 kB / 288.6 MB, free: 10.68 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005485/0.1254, allocations: 4.469 MB / 293 MB, free: 5.812 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1254, allocations: 0 / 293 MB, free: 5.812 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.1266, allocations: 414.2 kB / 293.4 MB, free: 5.383 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002536/0.1269, allocations: 136.6 kB / 293.6 MB, free: 5.23 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.218e-05/0.127, allocations: 4 kB / 293.6 MB, free: 5.227 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004135/0.1274, allocations: 27.98 kB / 293.6 MB, free: 5.199 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.1276, allocations: 31.81 kB / 293.6 MB, free: 5.168 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.809e-05/0.1276, allocations: 4 kB / 293.6 MB, free: 5.164 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003757/0.128, allocations: 227 kB / 293.9 MB, free: 4.941 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.128, allocations: 0 / 293.9 MB, free: 4.941 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0009265/0.129, allocations: 111.8 kB / 294 MB, free: 4.832 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001526/0.1305, allocations: 0.953 MB / 294.9 MB, free: 3.844 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.132, allocations: 0.5778 MB / 295.5 MB, free: 3.227 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.132, allocations: 4 kB / 295.5 MB, free: 3.223 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008919/0.1329, allocations: 480 kB / 296 MB, free: 2.715 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005757/0.1335, allocations: 53.34 kB / 296 MB, free: 2.664 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005244/0.1388, allocations: 1.962 MB / 298 MB, free: 0.625 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.208/0.3468, allocations: 0.802 MB / 298.8 MB, free: 29.3 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003056/0.3472, allocations: 108.2 kB / 298.9 MB, free: 29.3 MB / 250.7 MB Notification: Performance of SimCode: time 1.202e-06/0.3472, allocations: 0 / 298.9 MB, free: 29.3 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.864/3.211, allocations: 9.505 MB / 308.4 MB, free: 26.46 MB / 250.7 MB "Error: Could not read variable SineVoltage1.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat. Warning: Get data of variable SineVoltage1.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat failed! Error: Could not read variable SineVoltage2.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat. Warning: Get data of variable SineVoltage2.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat failed! Error: Could not read variable SineVoltage3.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat. Warning: Get data of variable SineVoltage3.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat failed! Error: Could not read variable _derdummy in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat. Warning: Get data of variable _derdummy from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat failed! Error: Could not read variable _dummy in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat. Warning: Get data of variable _dummy from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat failed! " Variables in the reference:time,Ideal.v,With_Ron_Goff.v,With_Ron_Goff_Vknee.v Variables in the result:Ground1.p.i,Ground1.p.v,Ideal.Goff,Ideal.LossPower,Ideal.Ron,Ideal.T,Ideal.T_heatPort,Ideal.Vknee,Ideal.i,Ideal.n.i,Ideal.n.v,Ideal.off,Ideal.p.i,Ideal.p.v,Ideal.s,Ideal.useHeatPort,Ideal.v,R1.LossPower,R1.R,R1.R_actual,R1.T,R1.T_heatPort,R1.T_ref,R1.alpha,R1.i,R1.n.i,R1.n.v,R1.p.i,R1.p.v,R1.useHeatPort,R1.v,R2.LossPower,R2.R,R2.R_actual,R2.T,R2.T_heatPort,R2.T_ref,R2.alpha,R2.i,R2.n.i,R2.n.v,R2.p.i,R2.p.v,R2.useHeatPort,R2.v,R3.LossPower,R3.R,R3.R_actual,R3.T,R3.T_heatPort,R3.T_ref,R3.alpha,R3.i,R3.n.i,R3.n.v,R3.p.i,R3.p.v,R3.useHeatPort,R3.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,SineVoltage2.V,SineVoltage2.freqHz,SineVoltage2.i,SineVoltage2.n.i,SineVoltage2.n.v,SineVoltage2.offset,SineVoltage2.p.i,SineVoltage2.p.v,SineVoltage2.phase,SineVoltage2.signalSource.amplitude,SineVoltage2.signalSource.freqHz,SineVoltage2.signalSource.offset,SineVoltage2.signalSource.phase,SineVoltage2.signalSource.startTime,SineVoltage2.signalSource.y,SineVoltage2.startTime,SineVoltage2.v,SineVoltage3.V,SineVoltage3.freqHz,SineVoltage3.i,SineVoltage3.n.i,SineVoltage3.n.v,SineVoltage3.offset,SineVoltage3.p.i,SineVoltage3.p.v,SineVoltage3.phase,SineVoltage3.signalSource.amplitude,SineVoltage3.signalSource.freqHz,SineVoltage3.signalSource.offset,SineVoltage3.signalSource.phase,SineVoltage3.signalSource.startTime,SineVoltage3.signalSource.y,SineVoltage3.startTime,SineVoltage3.v,With_Ron_Goff.Goff,With_Ron_Goff.LossPower,With_Ron_Goff.Ron,With_Ron_Goff.T,With_Ron_Goff.T_heatPort,With_Ron_Goff.Vknee,With_Ron_Goff.i,With_Ron_Goff.n.i,With_Ron_Goff.n.v,With_Ron_Goff.off,With_Ron_Goff.p.i,With_Ron_Goff.p.v,With_Ron_Goff.s,With_Ron_Goff.useHeatPort,With_Ron_Goff.v,With_Ron_Goff_Vknee.Goff,With_Ron_Goff_Vknee.LossPower,With_Ron_Goff_Vknee.Ron,With_Ron_Goff_Vknee.T,With_Ron_Goff_Vknee.T_heatPort,With_Ron_Goff_Vknee.Vknee,With_Ron_Goff_Vknee.i,With_Ron_Goff_Vknee.n.i,With_Ron_Goff_Vknee.n.v,With_Ron_Goff_Vknee.off,With_Ron_Goff_Vknee.p.i,With_Ron_Goff_Vknee.p.v,With_Ron_Goff_Vknee.s,With_Ron_Goff_Vknee.useHeatPort,With_Ron_Goff_Vknee.v,time