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.074/1.074, allocations: 111.2 MB / 124.2 MB, free: 11.22 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.239e-05/3.251e-05, allocations: 4 kB / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1876, allocations: 25.16 MB / 179.5 MB, free: 0.8086 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0943/0.2819, allocations: 35.83 MB / 215.4 MB, free: 13.28 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.2822, allocations: 59.97 kB / 215.4 MB, free: 13.22 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01572/0.2979, allocations: 3.724 MB / 219.1 MB, free: 9.48 MB / 186.7 MB Notification: Performance of FrontEnd: time 3.768e-06/0.298, allocations: 4 kB / 219.1 MB, free: 9.477 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.298, allocations: 4 kB / 219.2 MB, free: 9.473 MB / 186.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.0009608/0.299, allocations: 0.495 MB / 219.6 MB, free: 8.934 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.2991, allocations: 8.031 kB / 219.7 MB, free: 8.926 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.865e-05/0.2992, allocations: 54.55 kB / 219.7 MB, free: 8.863 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.116e-05/0.2992, allocations: 27.62 kB / 219.7 MB, free: 8.836 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.2997, allocations: 243 kB / 220 MB, free: 8.559 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.193e-05/0.2997, allocations: 16.44 kB / 220 MB, free: 8.543 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.064e-05/0.2998, allocations: 20 kB / 220 MB, free: 8.523 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005734/0.3003, allocations: 222.8 kB / 220.2 MB, free: 8.293 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.3004, allocations: 0 / 220.2 MB, free: 8.293 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.801e-05/0.3004, allocations: 19.94 kB / 220.2 MB, free: 8.273 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.3005, allocations: 4 kB / 220.2 MB, free: 8.27 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004609/0.3009, allocations: 145.7 kB / 220.4 MB, free: 8.125 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.3031, allocations: 0.9601 MB / 221.3 MB, free: 7.086 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004971/0.3036, allocations: 158.5 kB / 221.5 MB, free: 6.922 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000289/0.3039, allocations: 96.84 kB / 221.6 MB, free: 6.824 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.304, allocations: 8 kB / 221.6 MB, free: 6.816 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.304, allocations: 30.56 kB / 221.6 MB, free: 6.777 MB / 186.7 MB Notification: Performance of pre-optimization done (n=18): time 2.645e-06/0.304, allocations: 0 / 221.6 MB, free: 6.777 MB / 186.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007363/0.3048, allocations: 217.2 kB / 221.8 MB, free: 6.555 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.3048, allocations: 55.41 kB / 221.9 MB, free: 6.488 MB / 186.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.0003459/0.3052, allocations: 187.9 kB / 222.1 MB, free: 6.301 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.806e-05/0.3053, allocations: 37.7 kB / 222.1 MB, free: 6.258 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.3054, allocations: 202.5 kB / 222.3 MB, free: 6.059 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.31e-05/0.3055, allocations: 59.23 kB / 222.4 MB, free: 6 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.826e-05/0.3056, allocations: 4 kB / 222.4 MB, free: 5.996 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3057, allocations: 318.8 kB / 222.7 MB, free: 5.676 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.3059, allocations: 48.38 kB / 222.7 MB, free: 5.625 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.3061, allocations: 70.39 kB / 222.8 MB, free: 5.551 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.3063, allocations: 53.05 kB / 222.9 MB, free: 5.5 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.3063, allocations: 0 / 222.9 MB, free: 5.5 MB / 186.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006335/0.3069, allocations: 223.2 kB / 223.1 MB, free: 5.273 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.3069, allocations: 4 kB / 223.1 MB, free: 5.27 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.307, allocations: 0 / 223.1 MB, free: 5.27 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004475/0.3074, allocations: 73.67 kB / 223.2 MB, free: 5.191 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.3076, allocations: 32.02 kB / 223.2 MB, free: 5.16 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003577/0.3112, allocations: 2.962 MB / 226.1 MB, free: 1.926 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002661/0.3116, allocations: 24 kB / 226.2 MB, free: 1.902 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.411e-05/0.3116, allocations: 8 kB / 226.2 MB, free: 1.895 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 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.0001797/0.3118, allocations: 119.8 kB / 226.3 MB, free: 1.773 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.771e-05/0.3119, allocations: 19.72 kB / 226.3 MB, free: 1.754 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.853e-05/0.312, allocations: 33.59 kB / 226.3 MB, free: 1.715 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.312, allocations: 4 kB / 226.4 MB, free: 1.711 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.312, allocations: 0 / 226.4 MB, free: 1.711 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.312, allocations: 4 kB / 226.4 MB, free: 1.707 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.3132, allocations: 0.573 MB / 226.9 MB, free: 1.07 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.3132, allocations: 4 kB / 226.9 MB, free: 1.066 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.3134, allocations: 19.94 kB / 227 MB, free: 1.047 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004155/0.3138, allocations: 73.67 kB / 227 MB, free: 0.9688 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.3138, allocations: 12.03 kB / 227 MB, free: 0.957 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00347/0.3173, allocations: 2.885 MB / 229.9 MB, free: 13.8 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.3174, allocations: 3.984 kB / 229.9 MB, free: 13.8 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006363/0.318, allocations: 319.6 kB / 230.2 MB, free: 13.46 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.3182, allocations: 104.8 kB / 230.3 MB, free: 13.34 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.182e-05/0.3182, allocations: 11.98 kB / 230.4 MB, free: 13.32 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002792/0.3185, allocations: 16 kB / 230.4 MB, free: 13.31 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.3187, allocations: 27.95 kB / 230.4 MB, free: 13.28 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.3187, allocations: 7.953 kB / 230.4 MB, free: 13.27 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002151/0.3189, allocations: 160.6 kB / 230.6 MB, free: 13.12 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.3189, allocations: 0 / 230.6 MB, free: 13.12 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006157/0.3196, allocations: 75.78 kB / 230.6 MB, free: 13.04 MB / 202.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.0009701/0.3205, allocations: 0.9168 MB / 231.6 MB, free: 12.09 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0007989/0.3214, allocations: 385 kB / 231.9 MB, free: 11.69 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.3214, allocations: 0 / 231.9 MB, free: 11.69 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000502/0.3219, allocations: 309.2 kB / 232.2 MB, free: 11.36 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006466/0.3226, allocations: 56.7 kB / 232.3 MB, free: 11.3 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.3238, allocations: 361.5 kB / 232.6 MB, free: 10.91 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.3243, allocations: 0.7555 MB / 233.4 MB, free: 10.12 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.3244, allocations: 63.41 kB / 233.5 MB, free: 10.06 MB / 202.7 MB Notification: Performance of SimCode: time 8.32e-07/0.3245, allocations: 0 / 233.5 MB, free: 10.06 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.902/3.226, allocations: 5.274 MB / 238.7 MB, free: 4.793 MB / 202.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