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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.129/1.129, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.938e-05/2.981e-05, allocations: 4 kB / 148.2 MB, free: 6.137 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05389/0.05397, allocations: 25.18 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2112/0.2653, allocations: 35.17 MB / 208.6 MB, free: 4.996 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.2656, allocations: 62.25 kB / 208.6 MB, free: 4.996 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01538/0.281, allocations: 3.68 MB / 212.3 MB, free: 4.426 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2811, allocations: 0 / 212.3 MB, free: 4.426 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.965e-05/0.2811, allocations: 4.5 kB / 212.3 MB, free: 4.426 MB / 170.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.0008629/0.282, allocations: 0.4893 MB / 212.8 MB, free: 4.02 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.282, allocations: 8.969 kB / 212.8 MB, free: 4.02 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.2821, allocations: 36.56 kB / 212.8 MB, free: 4 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.2825, allocations: 239.8 kB / 213.1 MB, free: 3.781 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.2825, allocations: 6.406 kB / 213.1 MB, free: 3.781 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.285e-05/0.2826, allocations: 11.66 kB / 213.1 MB, free: 3.781 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004208/0.283, allocations: 132.6 kB / 213.2 MB, free: 3.781 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004632/0.2835, allocations: 198.4 kB / 213.4 MB, free: 3.715 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.2835, allocations: 3.75 kB / 213.4 MB, free: 3.715 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.27e-05/0.2836, allocations: 3.953 kB / 213.4 MB, free: 3.711 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.2836, allocations: 3.344 kB / 213.4 MB, free: 3.711 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.2854, allocations: 0.9114 MB / 214.3 MB, free: 3.164 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004023/0.2858, allocations: 153.5 kB / 214.5 MB, free: 3.133 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.2861, allocations: 92.81 kB / 214.6 MB, free: 3.121 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.2861, allocations: 3.75 kB / 214.6 MB, free: 3.121 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.2862, allocations: 34.31 kB / 214.6 MB, free: 3.082 MB / 170.7 MB Notification: Performance of pre-optimization done (n=18): time 2.825e-06/0.2862, allocations: 0 / 214.6 MB, free: 3.082 MB / 170.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005972/0.2868, allocations: 191 kB / 214.8 MB, free: 3.02 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.2e-05/0.2868, allocations: 57.89 kB / 214.9 MB, free: 2.953 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.0002471/0.2871, allocations: 177.5 kB / 215 MB, free: 2.852 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.2871, allocations: 31.72 kB / 215.1 MB, free: 2.816 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.2872, allocations: 208.3 kB / 215.3 MB, free: 2.641 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.428e-05/0.2873, allocations: 57.78 kB / 215.3 MB, free: 2.605 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.294e-05/0.2873, allocations: 3.938 kB / 215.3 MB, free: 2.602 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.115e-05/0.2874, allocations: 320.3 kB / 215.6 MB, free: 2.289 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.2875, allocations: 44.41 kB / 215.7 MB, free: 2.285 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.2877, allocations: 63.61 kB / 215.7 MB, free: 2.27 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.2878, allocations: 48.98 kB / 215.8 MB, free: 2.266 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2878, allocations: 0 / 215.8 MB, free: 2.266 MB / 170.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005624/0.2884, allocations: 198.6 kB / 216 MB, free: 2.203 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.2884, allocations: 8.25 kB / 216 MB, free: 2.203 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2885, allocations: 0 / 216 MB, free: 2.203 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004404/0.2889, allocations: 72.94 kB / 216.1 MB, free: 2.188 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.2891, allocations: 29.66 kB / 216.1 MB, free: 2.18 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002807/0.292, allocations: 2.857 MB / 218.9 MB, free: 15.61 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002744/0.2923, allocations: 26.02 kB / 219 MB, free: 15.59 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.2923, allocations: 7.812 kB / 219 MB, free: 15.59 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: IdealThyristor1.off:DISCRETE(start = true fixed = false ) "Switching state" type: Boolean Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealGTOThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.IdealThyristor1.off,IdealThyristor1.off,BooleanStep1.y,IdealGTOThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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.0002049/0.2925, allocations: 116.3 kB / 219.1 MB, free: 15.47 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005378/0.2931, allocations: 190.4 kB / 219.3 MB, free: 15.41 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.639e-05/0.2932, allocations: 19.03 kB / 219.3 MB, free: 15.4 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.143e-05/0.2932, allocations: 24.17 kB / 219.3 MB, free: 15.39 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2933, allocations: 2.203 kB / 219.3 MB, free: 15.39 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2933, allocations: 7.75 kB / 219.3 MB, free: 15.38 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2933, allocations: 3.938 kB / 219.3 MB, free: 15.38 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009375/0.2942, allocations: 0.5168 MB / 219.9 MB, free: 15.09 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.2943, allocations: 0 / 219.9 MB, free: 15.09 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001514/0.2944, allocations: 27.33 kB / 219.9 MB, free: 15.08 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003423/0.2948, allocations: 70.64 kB / 219.9 MB, free: 15.06 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.2948, allocations: 9.812 kB / 220 MB, free: 15.06 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002928/0.2978, allocations: 2.779 MB / 222.7 MB, free: 12.55 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.2978, allocations: 0 / 222.7 MB, free: 12.55 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005163/0.2983, allocations: 291.4 kB / 223 MB, free: 12.37 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.2985, allocations: 114.9 kB / 223.1 MB, free: 12.26 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.919e-05/0.2986, allocations: 7.812 kB / 223.1 MB, free: 12.26 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002722/0.2988, allocations: 14.48 kB / 223.2 MB, free: 12.25 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.299, allocations: 29.33 kB / 223.2 MB, free: 12.25 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.299, allocations: 6.375 kB / 223.2 MB, free: 12.25 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001536/0.2992, allocations: 139.7 kB / 223.3 MB, free: 12.17 MB / 186.7 MB Notification: Performance of sort global known variables: time 2.906e-06/0.2992, allocations: 0 / 223.3 MB, free: 12.17 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000651/0.2999, allocations: 70.09 kB / 223.4 MB, free: 12.16 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (IdealThyristor1.off,BooleanStep1.y,IdealGTOThyristor1.off) * Number of discrete states: 1 (IdealThyristor1.off) * 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.0008214/0.3007, allocations: 0.8999 MB / 224.3 MB, free: 11.38 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0006654/0.3014, allocations: 349.7 kB / 224.6 MB, free: 11.17 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.3014, allocations: 0 / 224.6 MB, free: 11.17 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004034/0.3018, allocations: 297.8 kB / 224.9 MB, free: 10.95 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005377/0.3024, allocations: 43.53 kB / 225 MB, free: 10.95 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.3036, allocations: 331.5 kB / 225.3 MB, free: 10.74 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.304, allocations: 0.7614 MB / 226.1 MB, free: 10.04 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.3042, allocations: 64.33 kB / 226.1 MB, free: 10.03 MB / 186.7 MB Notification: Performance of SimCode: time 9.32e-07/0.3042, allocations: 0 / 226.1 MB, free: 10.03 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.9/3.204, allocations: 5.121 MB / 231.2 MB, free: 7.508 MB / 186.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat