Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.DCSE_Start.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.Machines.Examples.DCSE_Start,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.166/1.166, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.696e-05/2.708e-05, allocations: 4 kB / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1755, allocations: 25.16 MB / 179.5 MB, free: 0.8047 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08696/0.2625, allocations: 38.78 MB / 218.3 MB, free: 10.31 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/0.2629, allocations: 67.97 kB / 218.4 MB, free: 10.24 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03844/0.3013, allocations: 7.535 MB / 225.9 MB, free: 2.676 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3014, allocations: 0 / 225.9 MB, free: 2.676 MB / 186.7 MB Notification: Performance of Transformations before backend: time 3.57e-05/0.3014, allocations: 8 kB / 225.9 MB, free: 2.668 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001422/0.3029, allocations: 0.5919 MB / 226.5 MB, free: 2.031 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.111e-05/0.3029, allocations: 12.03 kB / 226.5 MB, free: 2.02 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001486/0.3031, allocations: 78.48 kB / 226.6 MB, free: 1.934 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.3032, allocations: 43.44 kB / 226.6 MB, free: 1.891 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005838/0.3038, allocations: 302.3 kB / 226.9 MB, free: 1.555 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/0.3039, allocations: 32.78 kB / 227 MB, free: 1.523 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.304, allocations: 39.98 kB / 227 MB, free: 1.484 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000969/0.305, allocations: 362.9 kB / 227.4 MB, free: 1.117 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.991e-05/0.305, allocations: 3.906 kB / 227.4 MB, free: 1.113 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.181e-05/0.3051, allocations: 19.98 kB / 227.4 MB, free: 1.094 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.3051, allocations: 11.95 kB / 227.4 MB, free: 1.082 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006954/0.3058, allocations: 231 kB / 227.6 MB, free: 0.8555 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003256/0.3091, allocations: 1.282 MB / 228.9 MB, free: 15.49 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005455/0.3097, allocations: 197.8 kB / 229.1 MB, free: 15.29 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004756/0.3102, allocations: 137.2 kB / 229.2 MB, free: 15.15 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.3103, allocations: 4.406 kB / 229.2 MB, free: 15.15 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.558e-05/0.3103, allocations: 42.73 kB / 229.3 MB, free: 15.1 MB / 202.7 MB Notification: Performance of pre-optimization done (n=22): time 3.206e-06/0.3103, allocations: 7.875 kB / 229.3 MB, free: 15.09 MB / 202.7 MB Notification: Performance of matching and sorting (n=24): time 0.001909/0.3122, allocations: 0.6501 MB / 229.9 MB, free: 14.38 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.775e-05/0.3124, allocations: 81.11 kB / 230 MB, free: 14.29 MB / 202.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:3115:9-3117:50:writable] Warning: Parameter dcse.Le has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0005) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:3112:9-3114:50:writable] Warning: Parameter dcse.Re has no value, and is fixed during initialization (fixed=true), using available start value (start=0.01) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7500:7-7502:73:writable] Warning: Parameter dcse.La has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0015) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7497:7-7499:73:writable] Warning: Parameter dcse.Ra has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7494:7-7496:56:writable] Warning: Parameter dcse.wNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=147.6548547187203) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7491:7-7493:56:writable] Warning: Parameter dcse.IaNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=100.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7488:7-7490:56:writable] Warning: Parameter dcse.VaNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=100.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7272:7-7274:46:writable] Warning: Parameter dcse.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=dcse.Jr) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7268:7-7268:72:writable] Warning: Parameter dcse.Jr has no value, and is fixed during initialization (fixed=true), using available start value (start=0.15) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005628/0.3129, allocations: 256.7 kB / 230.3 MB, free: 14.03 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 4.479e-05/0.313, allocations: 29.7 kB / 230.3 MB, free: 14 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.3132, allocations: 270.3 kB / 230.6 MB, free: 13.73 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.3133, allocations: 82.81 kB / 230.6 MB, free: 13.64 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/0.3134, allocations: 4 kB / 230.6 MB, free: 13.64 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3135, allocations: 322.8 kB / 231 MB, free: 13.32 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002082/0.3137, allocations: 60.28 kB / 231 MB, free: 13.26 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002614/0.314, allocations: 119.6 kB / 231.1 MB, free: 13.12 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.3143, allocations: 84.61 kB / 231.2 MB, free: 13.04 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3143, allocations: 4.031 kB / 231.2 MB, free: 13.03 MB / 202.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008628/0.3152, allocations: 294.3 kB / 231.5 MB, free: 12.73 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.3152, allocations: 4 kB / 231.5 MB, free: 12.73 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.3153, allocations: 3.984 kB / 231.5 MB, free: 12.73 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003574/0.3156, allocations: 61.86 kB / 231.6 MB, free: 12.66 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004583/0.3161, allocations: 55.91 kB / 231.6 MB, free: 12.61 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003278/0.3194, allocations: 2.779 MB / 234.4 MB, free: 9.559 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004484/0.3199, allocations: 24 kB / 234.4 MB, free: 9.535 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.498e-05/0.32, allocations: 12 kB / 234.4 MB, free: 9.523 MB / 202.7 MB Warning: Assuming fixed start value for the following 3 variables: quadraticLoadTorque.phi:VARIABLE(unit = "rad" ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real dcse.airGapDC.psi_e:VARIABLE(unit = "Wb" ) "Excitation flux" type: Real dcse.inertiaRotor.w:VARIABLE(unit = "rad/s" ) "Absolute angular velocity of component (= der(phi))" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002457/0.3202, allocations: 127.7 kB / 234.6 MB, free: 9.395 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-05/0.3203, allocations: 23.72 kB / 234.6 MB, free: 9.371 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.3204, allocations: 30.08 kB / 234.6 MB, free: 9.344 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.422e-05/0.3205, allocations: 4 kB / 234.6 MB, free: 9.34 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-05/0.3205, allocations: 7.953 kB / 234.6 MB, free: 9.332 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3205, allocations: 0 / 234.6 MB, free: 9.332 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/0.3222, allocations: 0.7337 MB / 235.4 MB, free: 8.531 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.3222, allocations: 0 / 235.4 MB, free: 8.531 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004627/0.3227, allocations: 51.84 kB / 235.4 MB, free: 8.48 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003203/0.3231, allocations: 57.77 kB / 235.5 MB, free: 8.418 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/0.3231, allocations: 4 kB / 235.5 MB, free: 8.414 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003182/0.3263, allocations: 2.779 MB / 238.3 MB, free: 5.363 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3264, allocations: 0 / 238.3 MB, free: 5.363 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.3275, allocations: 469.8 kB / 238.7 MB, free: 4.863 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.3277, allocations: 120.8 kB / 238.8 MB, free: 4.727 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.557e-05/0.3278, allocations: 11.95 kB / 238.8 MB, free: 4.715 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004336/0.3282, allocations: 27.97 kB / 238.9 MB, free: 4.688 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.638e-05/0.3284, allocations: 15.97 kB / 238.9 MB, free: 4.672 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.3284, allocations: 12 kB / 238.9 MB, free: 4.66 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003341/0.3287, allocations: 183.1 kB / 239.1 MB, free: 4.48 MB / 202.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3287, allocations: 3.938 kB / 239.1 MB, free: 4.477 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0007099/0.3295, allocations: 83.94 kB / 239.2 MB, free: 4.395 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcse.inertiaRotor.w,dcse.airGapDC.psi_e,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * 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: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001619/0.3311, allocations: 1.143 MB / 240.3 MB, free: 3.207 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.3322, allocations: 438 kB / 240.7 MB, free: 2.754 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.3323, allocations: 0 / 240.7 MB, free: 2.754 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006528/0.3329, allocations: 333.2 kB / 241.1 MB, free: 2.402 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007146/0.3337, allocations: 52.86 kB / 241.1 MB, free: 2.352 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.3359, allocations: 0.6928 MB / 241.8 MB, free: 1.621 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004987/0.3365, allocations: 0.7948 MB / 242.6 MB, free: 0.8008 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003204/0.3368, allocations: 111.4 kB / 242.7 MB, free: 0.6914 MB / 202.7 MB Notification: Performance of SimCode: time 1.553e-06/0.3368, allocations: 4 kB / 242.7 MB, free: 0.6875 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.813/3.15, allocations: 8.15 MB / 250.9 MB, free: 8.531 MB / 218.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.DCSE_Start_res.mat does not exist to compare? outputFormat=mat