Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.792/1.792, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003502, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09554/0.09593, allocations: 44.5 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4904/0.5864, allocations: 104.9 MB / 413.4 MB, free: 11.14 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003182/0.5868, allocations: 93.73 kB / 413.5 MB, free: 11.13 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2299/0.8167, allocations: 54.85 MB / 468.4 MB, free: 3.648 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.8167, allocations: 0 / 468.4 MB, free: 3.648 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003636/0.8171, allocations: 75.88 kB / 468.4 MB, free: 3.574 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 652 * Number of variables: 652 Notification: Performance of Generate backend data structure: time 0.01215/0.8293, allocations: 2.954 MB / 471.4 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.8293, allocations: 12.03 kB / 471.4 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001708/0.8311, allocations: 366.6 kB / 471.7 MB, free: 176 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002008/0.8331, allocations: 360.1 kB / 472.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007117/0.8403, allocations: 1.949 MB / 474 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/0.8406, allocations: 197 kB / 474.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00102/0.8417, allocations: 247.9 kB / 474.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/0.8518, allocations: 3.383 MB / 477.9 MB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001059/0.852, allocations: 7.938 kB / 477.9 MB, free: 9.809 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004217/0.8524, allocations: 108 kB / 478 MB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001919/0.8526, allocations: 116.8 kB / 478.1 MB, free: 9.586 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009254/0.8619, allocations: 2.779 MB / 480.9 MB, free: 6.793 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03051/0.8924, allocations: 10.91 MB / 491.8 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005608/0.8981, allocations: 2.472 MB / 494.3 MB, free: 8.949 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005628/0.8987, allocations: 146.3 kB / 494.4 MB, free: 8.789 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.963e-05/0.8988, allocations: 51.88 kB / 494.4 MB, free: 8.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.077e-06/0.8988, allocations: 0 / 494.4 MB, free: 8.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02865/0.9274, allocations: 7.297 MB / 0.49 GB, free: 1.309 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.9276, allocations: 94.42 kB / 0.4901 GB, free: 1.199 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005787/0.9334, allocations: 1.587 MB / 0.4916 GB, free: 15.62 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004636/0.9339, allocations: 49.7 kB / 0.4917 GB, free: 15.56 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001796/0.9357, allocations: 1.147 MB / 0.4928 GB, free: 14.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001193/0.937, allocations: 0.4967 MB / 0.4933 GB, free: 13.9 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002549/0.9373, allocations: 36 kB / 0.4933 GB, free: 13.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003276/0.9376, allocations: 378.7 kB / 0.4937 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003759/0.9414, allocations: 0.8628 MB / 0.4945 GB, free: 12.62 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004596/0.9461, allocations: 1.31 MB / 0.4958 GB, free: 11.12 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01201/0.9581, allocations: 1.041 MB / 0.4968 GB, free: 10.08 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.318e-05/0.9582, allocations: 4 kB / 0.4968 GB, free: 10.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.01982/0.978, allocations: 2.741 MB / 0.4995 GB, free: 7.316 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.01146/0.9895, allocations: 5.401 MB / 0.5048 GB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-05/0.9896, allocations: 12 kB / 0.5048 GB, free: 1.477 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007639/0.9973, allocations: 0.6784 MB / 0.5054 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008145/1.005, allocations: 367.5 kB / 0.5058 GB, free: 436 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01759/1.023, allocations: 8.491 MB / 0.5141 GB, free: 7.527 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002734/1.026, allocations: 111.8 kB / 0.5142 GB, free: 7.418 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004101/1.026, allocations: 76.34 kB / 0.5143 GB, free: 7.344 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/1.026, allocations: 4 kB / 0.5143 GB, free: 7.34 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008195/1.035, allocations: 2.646 MB / 0.5168 GB, free: 4.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-05/1.035, allocations: 19.98 kB / 0.5169 GB, free: 4.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002549/1.037, allocations: 0.6673 MB / 0.5175 GB, free: 3.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002861/1.04, allocations: 363.5 kB / 0.5179 GB, free: 3.625 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2807/1.321, allocations: 8.54 MB / 0.5262 GB, free: 99.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/1.323, allocations: 105.3 kB / 0.5263 GB, free: 99.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002064/1.323, allocations: 71.25 kB / 0.5264 GB, free: 99.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * 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: 3 * 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: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002569/1.325, allocations: 0.9241 MB / 0.5273 GB, free: 99.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006897/1.326, allocations: 202.8 kB / 0.5275 GB, free: 99.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006998/1.333, allocations: 2.589 MB / 0.53 GB, free: 99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.279e-05/1.333, allocations: 17.22 kB / 0.53 GB, free: 99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/1.333, allocations: 5.656 kB / 0.53 GB, free: 99 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.989e-05/1.333, allocations: 9.141 kB / 0.53 GB, free: 99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01463/1.348, allocations: 5.413 MB / 0.5353 GB, free: 98.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/1.348, allocations: 2.25 kB / 0.5353 GB, free: 98.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/1.35, allocations: 233.6 kB / 0.5355 GB, free: 98.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002832/1.353, allocations: 0.6969 MB / 0.5362 GB, free: 98.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002551/1.353, allocations: 31.73 kB / 0.5363 GB, free: 98.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01507/1.368, allocations: 10.03 MB / 0.546 GB, free: 93.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/1.368, allocations: 6.812 kB / 0.5461 GB, free: 93.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008663/1.377, allocations: 3.96 MB / 0.5499 GB, free: 92.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/1.378, allocations: 473.2 kB / 0.5504 GB, free: 92.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004922/1.379, allocations: 28.38 kB / 0.5504 GB, free: 92.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/1.381, allocations: 101.9 kB / 0.5505 GB, free: 92.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004511/1.381, allocations: 124.1 kB / 0.5506 GB, free: 92.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/1.381, allocations: 41.39 kB / 0.5507 GB, free: 92.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00253/1.384, allocations: 1.222 MB / 0.5518 GB, free: 92.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.384, allocations: 0 / 0.5518 GB, free: 92.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004766/1.389, allocations: 1.038 MB / 0.5529 GB, free: 92.53 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.009593/1.398, allocations: 5.406 MB / 0.5581 GB, free: 90.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009583/1.408, allocations: 4.558 MB / 0.5626 GB, free: 88.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/1.408, allocations: 3.656 kB / 0.5626 GB, free: 88.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003504/1.411, allocations: 1.753 MB / 0.5643 GB, free: 87.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004193/1.416, allocations: 0.5741 MB / 0.5649 GB, free: 87.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04607/1.462, allocations: 26.18 MB / 0.5904 GB, free: 69.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003078/1.465, allocations: 2.115 MB / 0.5925 GB, free: 68.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002463/1.467, allocations: 1 MB / 0.5935 GB, free: 67.47 MB / 410.7 MB Notification: Performance of SimCode: time 2.003e-06/1.467, allocations: 0 / 0.5935 GB, free: 67.47 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.463/5.931, allocations: 96.76 MB / 0.688 GB, free: 100.4 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat