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/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.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.033/1.033, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.564e-05/2.575e-05, allocations: 4 kB / 148.2 MB, free: 6.121 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06076/0.06081, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2204/0.2813, allocations: 38.11 MB / 211.5 MB, free: 4.605 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.2816, allocations: 64.41 kB / 211.6 MB, free: 4.605 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02883/0.3104, allocations: 7.459 MB / 219 MB, free: 2.582 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3105, allocations: 3.875 kB / 219 MB, free: 2.582 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.747e-05/0.3105, allocations: 7.625 kB / 219 MB, free: 2.582 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001184/0.3117, allocations: 0.5912 MB / 219.6 MB, free: 2.098 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.3118, allocations: 11.38 kB / 219.6 MB, free: 2.098 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.3119, allocations: 46.61 kB / 219.7 MB, free: 2.07 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004952/0.3124, allocations: 320.4 kB / 220 MB, free: 1.801 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.3125, allocations: 11.41 kB / 220 MB, free: 1.801 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.189e-05/0.3126, allocations: 22.88 kB / 220 MB, free: 1.801 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005744/0.3131, allocations: 209.9 kB / 220.2 MB, free: 1.793 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006963/0.3138, allocations: 305.2 kB / 220.5 MB, free: 1.699 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/0.3139, allocations: 0 / 220.5 MB, free: 1.699 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.947e-05/0.3139, allocations: 7.734 kB / 220.5 MB, free: 1.695 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.314, allocations: 7.75 kB / 220.5 MB, free: 1.695 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002636/0.3166, allocations: 1.201 MB / 221.7 MB, free: 0.9844 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004073/0.3171, allocations: 190.6 kB / 221.9 MB, free: 0.9453 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/0.3175, allocations: 131.6 kB / 222.1 MB, free: 0.9258 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.192e-05/0.3175, allocations: 12.05 kB / 222.1 MB, free: 0.918 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.3176, allocations: 37.45 kB / 222.1 MB, free: 0.875 MB / 170.7 MB Notification: Performance of pre-optimization done (n=22): time 3.406e-06/0.3176, allocations: 0 / 222.1 MB, free: 0.875 MB / 170.7 MB Notification: Performance of matching and sorting (n=24): time 0.001512/0.3191, allocations: 0.6122 MB / 222.7 MB, free: 0.5039 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.3191, allocations: 88.89 kB / 222.8 MB, free: 412 kB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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/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/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/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.0003859/0.3195, allocations: 221.1 kB / 223 MB, free: 296 kB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.3196, allocations: 25.7 kB / 223 MB, free: 264 kB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.3197, allocations: 275.4 kB / 223.3 MB, free: 32 kB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.536e-05/0.3198, allocations: 79.89 kB / 223.4 MB, free: 15.97 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.605e-05/0.3198, allocations: 3.875 kB / 223.4 MB, free: 15.97 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.32, allocations: 321.4 kB / 223.7 MB, free: 15.65 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.3201, allocations: 65.31 kB / 223.8 MB, free: 15.65 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.3203, allocations: 111.5 kB / 223.9 MB, free: 15.59 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.3206, allocations: 76.36 kB / 224 MB, free: 15.57 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3206, allocations: 4.031 kB / 224 MB, free: 15.57 MB / 186.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006585/0.3212, allocations: 267.3 kB / 224.2 MB, free: 15.48 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3213, allocations: 7.75 kB / 224.2 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.3213, allocations: 0 / 224.2 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003/0.3216, allocations: 62 kB / 224.3 MB, free: 15.45 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004202/0.322, allocations: 54.34 kB / 224.3 MB, free: 15.44 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/0.3248, allocations: 2.679 MB / 227 MB, free: 12.88 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00041/0.3252, allocations: 15.64 kB / 227 MB, free: 12.87 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.3253, allocations: 11.78 kB / 227 MB, free: 12.87 MB / 186.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.0002126/0.3255, allocations: 121.2 kB / 227.2 MB, free: 12.75 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00059/0.3261, allocations: 230.7 kB / 227.4 MB, free: 12.66 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.692e-05/0.3262, allocations: 23.47 kB / 227.4 MB, free: 12.65 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.796e-05/0.3263, allocations: 26.89 kB / 227.4 MB, free: 12.64 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3263, allocations: 0 / 227.4 MB, free: 12.64 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3263, allocations: 3.875 kB / 227.4 MB, free: 12.64 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3263, allocations: 4 kB / 227.5 MB, free: 12.64 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/0.3275, allocations: 0.6531 MB / 228.1 MB, free: 12.24 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.3276, allocations: 0 / 228.1 MB, free: 12.24 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004176/0.328, allocations: 45.78 kB / 228.1 MB, free: 12.23 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002493/0.3283, allocations: 63.34 kB / 228.2 MB, free: 12.2 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.3283, allocations: 7.922 kB / 228.2 MB, free: 12.19 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002637/0.3309, allocations: 2.665 MB / 230.9 MB, free: 9.641 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.044e-06/0.331, allocations: 3.875 kB / 230.9 MB, free: 9.641 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008687/0.3319, allocations: 459.8 kB / 231.3 MB, free: 9.395 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.3321, allocations: 115.5 kB / 231.4 MB, free: 9.281 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/0.3321, allocations: 3.875 kB / 231.5 MB, free: 9.281 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004002/0.3325, allocations: 23.52 kB / 231.5 MB, free: 9.273 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.661e-05/0.3326, allocations: 23.59 kB / 231.5 MB, free: 9.262 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.3327, allocations: 7.781 kB / 231.5 MB, free: 9.262 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000211/0.3329, allocations: 161.7 kB / 231.7 MB, free: 9.172 MB / 186.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3329, allocations: 0 / 231.7 MB, free: 9.172 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006415/0.3335, allocations: 69.38 kB / 231.7 MB, free: 9.172 MB / 186.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.001267/0.3348, allocations: 1.12 MB / 232.9 MB, free: 8.266 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0008138/0.3357, allocations: 402.9 kB / 233.2 MB, free: 8.035 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3357, allocations: 0 / 233.2 MB, free: 8.035 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005043/0.3362, allocations: 320.1 kB / 233.6 MB, free: 7.809 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005656/0.3368, allocations: 49.73 kB / 233.6 MB, free: 7.789 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.3385, allocations: 0.6488 MB / 234.3 MB, free: 7.34 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.339, allocations: 0.8001 MB / 235.1 MB, free: 6.586 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002192/0.3392, allocations: 111.9 kB / 235.2 MB, free: 6.566 MB / 186.7 MB Notification: Performance of SimCode: time 1.193e-06/0.3393, allocations: 0 / 235.2 MB, free: 6.566 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.071/3.411, allocations: 8.009 MB / 243.2 MB, free: 1.309 MB / 186.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