Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.975/1.975, allocations: 194.9 MB / 211.1 MB, free: 8.547 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003674, allocations: 8 kB / 264.1 MB, free: 3.453 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.301, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5506/0.8517, allocations: 157 MB / 465.6 MB, free: 40.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003571/0.8521, allocations: 104.7 kB / 465.7 MB, free: 40.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.041/3.893, allocations: 0.5738 GB / 1.029 GB, free: 12.13 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.825e-06/3.893, allocations: 0 / 1.029 GB, free: 12.13 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00218/3.895, allocations: 428.7 kB / 1.029 GB, free: 12.05 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.09871/3.994, allocations: 18.04 MB / 1.047 GB, free: 11.21 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.103e-05/3.994, allocations: 12.03 kB / 1.047 GB, free: 11.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01708/4.011, allocations: 2.998 MB / 1.05 GB, free: 8.191 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.8799/4.891, allocations: 8.506 MB / 1.058 GB, free: 21.23 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05421/4.945, allocations: 14.6 MB / 1.072 GB, free: 20.45 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002323/4.948, allocations: 1.341 MB / 1.073 GB, free: 20.41 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009803/4.958, allocations: 1.74 MB / 1.075 GB, free: 20.4 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1076/5.065, allocations: 30.73 MB / 1.105 GB, free: 18.23 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001143/5.066, allocations: 29.36 kB / 1.105 GB, free: 18.22 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008571/5.075, allocations: 0.7527 MB / 1.106 GB, free: 18.22 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001999/5.077, allocations: 1.192 MB / 1.107 GB, free: 18.18 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08597/5.163, allocations: 27.66 MB / 1.134 GB, free: 17.75 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2895/5.453, allocations: 98.58 MB / 1.23 GB, free: 12.81 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8922/6.345, allocations: 35.55 MB / 1.265 GB, free: 52.58 MB / 0.495 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1236/6.469, allocations: 39.43 MB / 1.304 GB, free: 51.49 MB / 0.495 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001913/6.469, allocations: 146.8 kB / 1.304 GB, free: 51.44 MB / 0.495 GB Notification: Performance of pre-optimization done (n=1283): time 2.115e-05/6.469, allocations: 6.344 kB / 1.304 GB, free: 51.44 MB / 0.495 GB Notification: Performance of matching and sorting (n=1291): time 0.6446/7.114, allocations: 106 MB / 1.407 GB, free: 21.53 MB / 0.495 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/7.114, allocations: 190.2 kB / 1.407 GB, free: 21.33 MB / 0.495 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0141/7.128, allocations: 5.012 MB / 1.412 GB, free: 17.11 MB / 0.495 GB Notification: Performance of collectPreVariables (initialization): time 0.002976/7.131, allocations: 205.7 kB / 1.413 GB, free: 16.9 MB / 0.495 GB Notification: Performance of collectInitialEqns (initialization): time 0.005774/7.137, allocations: 6.648 MB / 1.419 GB, free: 11.02 MB / 0.495 GB Notification: Performance of collectInitialBindings (initialization): time 0.006889/7.144, allocations: 4.232 MB / 1.423 GB, free: 7.195 MB / 0.495 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003403/7.147, allocations: 216 kB / 1.423 GB, free: 6.984 MB / 0.495 GB Notification: Performance of setup shared object (initialization): time 0.001555/7.149, allocations: 0.806 MB / 1.424 GB, free: 6.312 MB / 0.495 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02971/7.178, allocations: 8.671 MB / 1.433 GB, free: 0 / 0.495 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5207/7.699, allocations: 10.48 MB / 1.443 GB, free: 59.68 MB / 0.495 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02753/7.727, allocations: 9.952 MB / 1.453 GB, free: 59.53 MB / 0.495 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001157/7.727, allocations: 17.66 kB / 1.453 GB, free: 59.53 MB / 0.495 GB Notification: Performance of matching and sorting (n=1574) (initialization): time 0.07762/7.805, allocations: 25.33 MB / 1.477 GB, free: 58.89 MB / 0.495 GB Notification: Performance of prepare postOptimizeDAE: time 8.285e-05/7.805, allocations: 28.22 kB / 1.477 GB, free: 58.89 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002259/7.805, allocations: 54.16 kB / 1.477 GB, free: 58.89 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03138/7.836, allocations: 9.02 MB / 1.486 GB, free: 58.68 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01572/7.852, allocations: 1.883 MB / 1.488 GB, free: 58.68 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05598/7.908, allocations: 30.65 MB / 1.518 GB, free: 47.09 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01348/7.922, allocations: 0.5571 MB / 1.519 GB, free: 47.09 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003856/7.926, allocations: 462.2 kB / 1.519 GB, free: 47.09 MB / 0.495 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 244 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (992): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 12 * 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: 7 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.02288/7.949, allocations: 6.75 MB / 1.526 GB, free: 45.26 MB / 0.495 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005214/7.954, allocations: 0.8585 MB / 1.526 GB, free: 45.26 MB / 0.495 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08793/8.042, allocations: 25.76 MB / 1.552 GB, free: 33.99 MB / 0.495 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05843/8.1, allocations: 20.28 MB / 1.571 GB, free: 25.23 MB / 0.495 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.457e-05/8.1, allocations: 9.578 kB / 1.571 GB, free: 25.23 MB / 0.495 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003094/8.101, allocations: 54.05 kB / 1.571 GB, free: 25.23 MB / 0.495 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6063/8.707, allocations: 49.24 MB / 1.619 GB, free: 64.54 MB / 0.5106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002041/8.707, allocations: 2.844 kB / 1.619 GB, free: 64.54 MB / 0.5106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0128/8.72, allocations: 1.386 MB / 1.621 GB, free: 64.54 MB / 0.5106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08725/8.808, allocations: 9.132 MB / 1.63 GB, free: 64.31 MB / 0.5106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004621/8.812, allocations: 273 kB / 1.63 GB, free: 64.31 MB / 0.5106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1024/8.915, allocations: 36.88 MB / 1.666 GB, free: 48.82 MB / 0.5106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/8.915, allocations: 13.66 kB / 1.666 GB, free: 48.81 MB / 0.5106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1581/9.073, allocations: 38.4 MB / 1.704 GB, free: 46.75 MB / 0.5106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01137/9.084, allocations: 2.828 MB / 1.706 GB, free: 46.66 MB / 0.5106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005271/9.09, allocations: 194 kB / 1.706 GB, free: 46.66 MB / 0.5106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01242/9.102, allocations: 0.5112 MB / 1.707 GB, free: 46.66 MB / 0.5106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00529/9.107, allocations: 0.9766 MB / 1.708 GB, free: 46.64 MB / 0.5106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00368/9.111, allocations: 340.9 kB / 1.708 GB, free: 46.64 MB / 0.5106 GB Notification: Performance of sorting global known variables: time 0.01127/9.123, allocations: 3.837 MB / 1.712 GB, free: 46.43 MB / 0.5106 GB Notification: Performance of sort global known variables: time 7.91e-07/9.123, allocations: 1.469 kB / 1.712 GB, free: 46.43 MB / 0.5106 GB Notification: Performance of remove unused functions: time 0.02072/9.143, allocations: 3.25 MB / 1.715 GB, free: 46.43 MB / 0.5106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi,imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (730): * Single equations (assignments): 664 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of Backend phase and start with SimCode phase: time 0.1142/9.258, allocations: 40.27 MB / 1.755 GB, free: 28.53 MB / 0.5106 GB Notification: Performance of simCode: created initialization part: time 0.06353/9.321, allocations: 21.53 MB / 1.776 GB, free: 17 MB / 0.5106 GB Notification: Performance of simCode: created event and clocks part: time 1.735e-05/9.321, allocations: 0 / 1.776 GB, free: 17 MB / 0.5106 GB Notification: Performance of simCode: created simulation system equations: time 0.03901/9.36, allocations: 12.43 MB / 1.788 GB, free: 6.121 MB / 0.5106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0208/9.381, allocations: 1.963 MB / 1.79 GB, free: 4.621 MB / 0.5106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9836/10.36, allocations: 162.1 MB / 1.948 GB, free: 3.625 MB / 0.5106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04683/10.41, allocations: 11.93 MB / 1.96 GB, free: 2.312 MB / 0.5106 GB Notification: Performance of simCode: alias equations: time 0.02666/10.44, allocations: 2.648 MB / 1.962 GB, free: 2.031 MB / 0.5106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02645/10.46, allocations: 6.757 MB / 1.969 GB, free: 256 kB / 0.5106 GB Notification: Performance of SimCode: time 2.194e-06/10.46, allocations: 0 / 1.969 GB, free: 256 kB / 0.5106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.723/12.19, allocations: 343.3 MB / 2.304 GB, free: 63.68 MB / 0.5263 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003139/12.19, allocations: 259.3 kB / 2.304 GB, free: 63.33 MB / 0.5263 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.48/27.66, allocations: 0.9062 kB / 2.304 GB, free: 63.33 MB / 0.5263 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat