Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.039/1.039, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003955/0.0003957, allocations: 4 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0682/0.06865, allocations: 25.17 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.003512/0.07222, allocations: 2.051 MB / 185.6 MB, free: 3.863 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.07366, allocations: 0.5228 MB / 186.1 MB, free: 3.34 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.07387, allocations: 7.938 kB / 186.1 MB, free: 3.332 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 8.355e-05/0.07397, allocations: 31.83 kB / 186.1 MB, free: 3.301 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003069/0.07429, allocations: 107.6 kB / 186.2 MB, free: 3.195 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002761/0.07458, allocations: 43.95 kB / 186.3 MB, free: 3.152 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004091/0.07501, allocations: 211.6 kB / 186.5 MB, free: 2.945 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002152/0.07524, allocations: 69.36 kB / 186.5 MB, free: 2.879 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.07546, allocations: 95.62 kB / 186.6 MB, free: 2.785 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002109/0.07569, allocations: 115.5 kB / 186.8 MB, free: 2.672 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 4.763e-05/0.07575, allocations: 15.98 kB / 186.8 MB, free: 2.656 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.134e-05/0.07582, allocations: 12 kB / 186.8 MB, free: 2.645 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 6.029e-05/0.07589, allocations: 39.84 kB / 186.8 MB, free: 2.605 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 7.941e-05/0.07598, allocations: 69.58 kB / 186.9 MB, free: 2.531 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003114/0.0763, allocations: 203.4 kB / 187.1 MB, free: 2.332 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.07632, allocations: 3.938 kB / 187.1 MB, free: 2.328 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.07633, allocations: 0 / 187.1 MB, free: 2.328 MB / 154.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.07635, allocations: 0 / 187.1 MB, free: 2.328 MB / 154.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.001083/0.07744, allocations: 0.5222 MB / 187.6 MB, free: 1.758 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.0775, allocations: 12.03 kB / 187.6 MB, free: 1.746 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.023e-05/0.0776, allocations: 50.55 kB / 187.7 MB, free: 1.688 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.945e-05/0.07769, allocations: 31.62 kB / 187.7 MB, free: 1.656 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.0781, allocations: 246.8 kB / 187.9 MB, free: 1.375 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.07814, allocations: 16.44 kB / 188 MB, free: 1.359 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.645e-05/0.07821, allocations: 24 kB / 188 MB, free: 1.336 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006466/0.07887, allocations: 230.7 kB / 188.2 MB, free: 1.098 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.0789, allocations: 0 / 188.2 MB, free: 1.098 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.913e-05/0.07894, allocations: 15.95 kB / 188.2 MB, free: 1.082 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.07896, allocations: 4 kB / 188.2 MB, free: 1.078 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006053/0.07958, allocations: 177.6 kB / 188.4 MB, free: 0.9023 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002139/0.08174, allocations: 0.9641 MB / 189.4 MB, free: 15.86 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005677/0.08234, allocations: 173.4 kB / 189.5 MB, free: 15.69 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.0824, allocations: 4 kB / 189.5 MB, free: 15.68 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.08244, allocations: 30.56 kB / 189.6 MB, free: 15.64 MB / 170.7 MB Notification: Performance of pre-optimization done (n=18): time 2.595e-06/0.08245, allocations: 0 / 189.6 MB, free: 15.64 MB / 170.7 MB Notification: Performance of matching and sorting (n=18): time 0.001896/0.08436, allocations: 0.5014 MB / 190.1 MB, free: 15.09 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.08444, allocations: 59.34 kB / 190.1 MB, free: 15.02 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Sources.mo:361:5-361:68:writable] Warning: Parameter SineVoltage1.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004137/0.08486, allocations: 217.9 kB / 190.3 MB, free: 14.8 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.08491, allocations: 25.7 kB / 190.4 MB, free: 14.77 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.08507, allocations: 214.6 kB / 190.6 MB, free: 14.56 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.076e-05/0.08515, allocations: 59.17 kB / 190.6 MB, free: 14.5 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.434e-05/0.08519, allocations: 12 kB / 190.6 MB, free: 14.49 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.08533, allocations: 310.8 kB / 191 MB, free: 14.18 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.08559, allocations: 63.91 kB / 191 MB, free: 14.11 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002741/0.08588, allocations: 103.2 kB / 191.1 MB, free: 14 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002635/0.08616, allocations: 64.56 kB / 191.2 MB, free: 13.94 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.08617, allocations: 0 / 191.2 MB, free: 13.94 MB / 170.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0008387/0.08702, allocations: 266.8 kB / 191.4 MB, free: 13.67 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.08706, allocations: 4 kB / 191.4 MB, free: 13.66 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.08707, allocations: 0 / 191.4 MB, free: 13.66 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004656/0.08755, allocations: 81.66 kB / 191.5 MB, free: 13.58 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.08778, allocations: 27.98 kB / 191.5 MB, free: 13.55 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003704/0.0915, allocations: 2.997 MB / 194.5 MB, free: 10.28 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.0918, allocations: 23.78 kB / 194.6 MB, free: 10.26 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/0.09184, allocations: 4 kB / 194.6 MB, free: 10.25 MB / 170.7 MB Warning: Assuming fixed start value for the following 1 variables: IdealThyristor1.off:DISCRETE(start = true fixed = true ) "Switching state" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * 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: 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 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002646/0.09212, allocations: 141.8 kB / 194.7 MB, free: 10.11 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.569e-05/0.09219, allocations: 20.19 kB / 194.7 MB, free: 10.09 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.067e-05/0.09227, allocations: 25.86 kB / 194.8 MB, free: 10.06 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.09229, allocations: 3.984 kB / 194.8 MB, free: 10.06 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.0923, allocations: 3.953 kB / 194.8 MB, free: 10.05 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.09231, allocations: 0 / 194.8 MB, free: 10.05 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005288/0.09285, allocations: 301.4 kB / 195.1 MB, free: 9.711 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.09287, allocations: 0 / 195.1 MB, free: 9.711 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.09304, allocations: 19.98 kB / 195.1 MB, free: 9.691 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004027/0.09346, allocations: 81.61 kB / 195.2 MB, free: 9.605 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.09349, allocations: 0 / 195.2 MB, free: 9.605 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00357/0.09707, allocations: 2.924 MB / 198.1 MB, free: 6.414 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.0971, allocations: 0 / 198.1 MB, free: 6.414 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008661/0.09798, allocations: 332 kB / 198.4 MB, free: 6.07 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.09815, allocations: 120.7 kB / 198.5 MB, free: 5.934 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.878e-05/0.09821, allocations: 192 / 198.5 MB, free: 5.934 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002767/0.0985, allocations: 27.92 kB / 198.6 MB, free: 5.906 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.09864, allocations: 23.95 kB / 198.6 MB, free: 5.883 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.09867, allocations: 7.984 kB / 198.6 MB, free: 5.875 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002066/0.09889, allocations: 155.2 kB / 198.7 MB, free: 5.723 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.0989, allocations: 0 / 198.7 MB, free: 5.723 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006541/0.09957, allocations: 79.84 kB / 198.8 MB, free: 5.645 MB / 170.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 (IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire) * Number of discrete states: 1 (IdealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001219/0.1008, allocations: 0.8661 MB / 199.7 MB, free: 4.746 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.1018, allocations: 413.1 kB / 200.1 MB, free: 4.316 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.1019, allocations: 4.188 kB / 200.1 MB, free: 4.312 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005797/0.1025, allocations: 331.4 kB / 200.4 MB, free: 3.965 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005949/0.1031, allocations: 52.59 kB / 200.5 MB, free: 3.91 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.1048, allocations: 0.81 MB / 201.3 MB, free: 3.031 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.1053, allocations: 0.7518 MB / 202 MB, free: 2.25 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.1054, allocations: 63.41 kB / 202.1 MB, free: 2.188 MB / 170.7 MB Notification: Performance of SimCode: time 1.422e-06/0.1054, allocations: 0 / 202.1 MB, free: 2.188 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.694/2.8, allocations: 5.232 MB / 207.3 MB, free: 22.93 MB / 170.7 MB "" Variables in the reference:R1.i,R1.v,R3.i,R3.v,Time Variables in the result:BooleanStep1.startTime,BooleanStep1.startValue,BooleanStep1.y,Ground1.p.i,Ground1.p.v,IdealGTOThyristor1.Goff,IdealGTOThyristor1.LossPower,IdealGTOThyristor1.Ron,IdealGTOThyristor1.T,IdealGTOThyristor1.T_heatPort,IdealGTOThyristor1.Vknee,IdealGTOThyristor1.fire,IdealGTOThyristor1.i,IdealGTOThyristor1.n.i,IdealGTOThyristor1.n.v,IdealGTOThyristor1.off,IdealGTOThyristor1.p.i,IdealGTOThyristor1.p.v,IdealGTOThyristor1.s,IdealGTOThyristor1.useHeatPort,IdealGTOThyristor1.v,IdealThyristor1.Goff,IdealThyristor1.LossPower,IdealThyristor1.Ron,IdealThyristor1.T,IdealThyristor1.T_heatPort,IdealThyristor1.Vknee,IdealThyristor1.fire,IdealThyristor1.i,IdealThyristor1.n.i,IdealThyristor1.n.v,IdealThyristor1.off,IdealThyristor1.p.i,IdealThyristor1.p.v,IdealThyristor1.s,IdealThyristor1.useHeatPort,IdealThyristor1.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,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,time