Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.713/1.713, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003649/0.0003646, allocations: 12 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08445/0.08486, allocations: 38.76 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3784/0.4634, allocations: 94.35 MB / 366.5 MB, free: 11.45 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003501/0.4638, allocations: 87.2 kB / 366.5 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1776/0.6413, allocations: 40.47 MB / 407 MB, free: 8.766 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.6414, allocations: 0 / 407 MB, free: 8.766 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002536/0.6417, allocations: 51.94 kB / 407.1 MB, free: 8.715 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 487 * Number of variables: 487 Notification: Performance of Generate backend data structure: time 0.008346/0.65, allocations: 2.174 MB / 409.2 MB, free: 6.484 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.6501, allocations: 12.03 kB / 409.2 MB, free: 6.473 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00123/0.6513, allocations: 282.3 kB / 409.5 MB, free: 6.188 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00154/0.6529, allocations: 273.1 kB / 409.8 MB, free: 5.918 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004508/0.6575, allocations: 1.321 MB / 411.1 MB, free: 4.539 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002374/0.6578, allocations: 151.7 kB / 411.3 MB, free: 4.391 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008388/0.6586, allocations: 191.9 kB / 411.4 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008045/0.6667, allocations: 2.392 MB / 413.8 MB, free: 1.723 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001086/0.6668, allocations: 7.906 kB / 413.8 MB, free: 1.715 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003623/0.6672, allocations: 87.98 kB / 413.9 MB, free: 1.629 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000141/0.6674, allocations: 79.66 kB / 414 MB, free: 1.551 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006897/0.6743, allocations: 1.888 MB / 415.9 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02311/0.6974, allocations: 7.788 MB / 423.7 MB, free: 7.652 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003831/0.7013, allocations: 1.398 MB / 425.1 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004682/0.7018, allocations: 146 kB / 425.2 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.191e-05/0.7019, allocations: 47.5 kB / 425.3 MB, free: 5.996 MB / 346.7 MB Notification: Performance of pre-optimization done (n=111): time 4.138e-06/0.7019, allocations: 0 / 425.3 MB, free: 5.996 MB / 346.7 MB Notification: Performance of matching and sorting (n=127): time 0.2511/0.953, allocations: 6.29 MB / 431.6 MB, free: 84.81 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.9531, allocations: 67.62 kB / 431.6 MB, free: 84.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002679/0.9558, allocations: 1.068 MB / 432.7 MB, free: 84.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003499/0.9562, allocations: 48.08 kB / 432.7 MB, free: 84.58 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008755/0.9571, allocations: 0.8402 MB / 433.6 MB, free: 84.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007079/0.9578, allocations: 442.8 kB / 434 MB, free: 84.19 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.958, allocations: 27.88 kB / 434 MB, free: 84.19 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.9581, allocations: 368 kB / 434.4 MB, free: 83.88 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002056/0.9602, allocations: 0.68 MB / 435.1 MB, free: 83.88 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002403/0.9627, allocations: 0.9924 MB / 436.1 MB, free: 83.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002396/0.9651, allocations: 0.8268 MB / 436.9 MB, free: 83.53 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.103e-05/0.9652, allocations: 3.562 kB / 436.9 MB, free: 83.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.007366/0.9726, allocations: 2.291 MB / 439.2 MB, free: 83.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.265e-05/0.9726, allocations: 9.25 kB / 439.2 MB, free: 83.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.085e-05/0.9727, allocations: 9.844 kB / 439.2 MB, free: 83.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/0.9751, allocations: 0.5745 MB / 439.8 MB, free: 83.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002443/0.9776, allocations: 302.6 kB / 440.1 MB, free: 83.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01292/0.9906, allocations: 8.592 MB / 448.7 MB, free: 78.13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002065/0.9927, allocations: 89.77 kB / 448.8 MB, free: 78.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003051/0.9931, allocations: 59.33 kB / 448.8 MB, free: 78.12 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (144): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 8,(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001773/0.9948, allocations: 0.6 MB / 449.4 MB, free: 78.01 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005356/0.9954, allocations: 150.8 kB / 449.6 MB, free: 77.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006258/1.002, allocations: 2.195 MB / 451.8 MB, free: 77.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.002e-05/1.002, allocations: 18.62 kB / 451.8 MB, free: 77.78 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/1.002, allocations: 7.875 kB / 451.8 MB, free: 77.78 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-05/1.002, allocations: 10.12 kB / 451.8 MB, free: 77.78 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/1.014, allocations: 4.363 MB / 456.2 MB, free: 77.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.655e-05/1.014, allocations: 3.875 kB / 456.2 MB, free: 77.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001751/1.016, allocations: 197.9 kB / 456.4 MB, free: 77.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002748/1.019, allocations: 0.6241 MB / 457 MB, free: 76.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002854/1.019, allocations: 41.31 kB / 457 MB, free: 76.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/1.032, allocations: 10.16 MB / 467.2 MB, free: 68.84 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.032, allocations: 5.891 kB / 467.2 MB, free: 68.84 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008164/1.041, allocations: 3.277 MB / 470.5 MB, free: 67.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/1.042, allocations: 374.8 kB / 470.8 MB, free: 67.06 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/1.042, allocations: 35.19 kB / 470.9 MB, free: 67.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/1.044, allocations: 76.61 kB / 470.9 MB, free: 67.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004266/1.044, allocations: 109.1 kB / 471 MB, free: 67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/1.044, allocations: 36.8 kB / 471.1 MB, free: 67 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00171/1.046, allocations: 0.8261 MB / 471.9 MB, free: 66.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.41e-07/1.046, allocations: 0 / 471.9 MB, free: 66.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00288/1.049, allocations: 496.6 kB / 472.4 MB, free: 66.61 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 8,(3,100.0%) 9,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008952/1.058, allocations: 4.654 MB / 477 MB, free: 63.88 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005903/1.064, allocations: 2.509 MB / 479.6 MB, free: 62.55 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.064, allocations: 6.828 kB / 479.6 MB, free: 62.55 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004026/1.068, allocations: 1.755 MB / 481.3 MB, free: 61.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/1.071, allocations: 382.2 kB / 481.7 MB, free: 61.37 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0313/1.103, allocations: 18.37 MB / 0.4883 GB, free: 48.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001874/1.104, allocations: 1.68 MB / 0.49 GB, free: 47.92 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001557/1.106, allocations: 0.7137 MB / 0.4907 GB, free: 47.36 MB / 346.7 MB Notification: Performance of SimCode: time 1.242e-06/1.106, allocations: 0 / 0.4907 GB, free: 47.36 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.044/5.15, allocations: 86.06 MB / 0.5747 GB, free: 95.95 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat