Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 194.9 MB / 211.1 MB, free: 7.598 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005056/0.0005057, allocations: 8 kB / 264.1 MB, free: 2.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3178, allocations: 44.5 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1639/0.4818, allocations: 93.99 MB / 402.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/0.4821, allocations: 91.95 kB / 402.7 MB, free: 14.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3734/0.8555, allocations: 28.56 MB / 431.2 MB, free: 89.12 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.8556, allocations: 0 / 431.2 MB, free: 89.12 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.686e-05/0.8557, allocations: 21.53 kB / 431.2 MB, free: 89.12 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003849/0.8596, allocations: 1.289 MB / 432.5 MB, free: 88.29 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.8596, allocations: 9.5 kB / 432.5 MB, free: 88.29 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005235/0.8602, allocations: 151.4 kB / 432.7 MB, free: 88.19 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/0.8613, allocations: 189.5 kB / 432.9 MB, free: 88.12 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002597/0.8639, allocations: 0.8055 MB / 433.7 MB, free: 87.61 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.328e-05/0.864, allocations: 78.5 kB / 433.8 MB, free: 87.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002496/0.8643, allocations: 104.6 kB / 433.9 MB, free: 87.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002567/0.8669, allocations: 0.9394 MB / 434.8 MB, free: 87.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.604e-05/0.867, allocations: 7.781 kB / 434.8 MB, free: 87.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/0.8671, allocations: 47.75 kB / 434.8 MB, free: 87.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.417e-05/0.8671, allocations: 23.31 kB / 434.9 MB, free: 87.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002015/0.8692, allocations: 0.6551 MB / 435.5 MB, free: 86.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007469/0.8767, allocations: 3.944 MB / 439.5 MB, free: 83.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.8778, allocations: 471 kB / 439.9 MB, free: 83.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.341e-05/0.8778, allocations: 7.828 kB / 439.9 MB, free: 83.49 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.8779, allocations: 38.56 kB / 440 MB, free: 83.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 3.266e-06/0.8779, allocations: 4 kB / 440 MB, free: 83.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.004195/0.8821, allocations: 1.507 MB / 441.5 MB, free: 81.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.8822, allocations: 81.55 kB / 441.6 MB, free: 81.76 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/0.8835, allocations: 0.7036 MB / 442.3 MB, free: 81.05 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-05/0.8836, allocations: 33.7 kB / 442.3 MB, free: 81.01 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003957/0.884, allocations: 0.5719 MB / 442.9 MB, free: 80.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.8841, allocations: 173.5 kB / 443 MB, free: 80.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.234e-05/0.8842, allocations: 16 kB / 443.1 MB, free: 80.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.294e-05/0.8843, allocations: 334 kB / 443.4 MB, free: 79.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005667/0.8849, allocations: 181.9 kB / 443.6 MB, free: 79.74 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006902/0.8856, allocations: 480.3 kB / 444 MB, free: 79.14 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006653/0.8862, allocations: 256.7 kB / 444.3 MB, free: 78.89 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.8863, allocations: 4 kB / 444.3 MB, free: 78.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001991/0.8883, allocations: 0.8052 MB / 445.1 MB, free: 78.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.8883, allocations: 8 kB / 445.1 MB, free: 78.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.8883, allocations: 11.94 kB / 445.1 MB, free: 78.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003698/0.8887, allocations: 89.62 kB / 445.2 MB, free: 77.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009309/0.8897, allocations: 168 kB / 445.4 MB, free: 77.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002398/0.8921, allocations: 2.935 MB / 448.3 MB, free: 74.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.8931, allocations: 43.89 kB / 448.3 MB, free: 74.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.536e-05/0.8932, allocations: 36 kB / 448.4 MB, free: 74.52 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * 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): 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%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006326/0.8939, allocations: 273.5 kB / 448.6 MB, free: 74.24 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001744/0.8941, allocations: 86.97 kB / 448.7 MB, free: 74.15 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001449/0.8955, allocations: 0.5222 MB / 449.2 MB, free: 73.61 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.8955, allocations: 4 kB / 449.3 MB, free: 73.61 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.8956, allocations: 4 kB / 449.3 MB, free: 73.61 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.8956, allocations: 0 / 449.3 MB, free: 73.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003075/0.8987, allocations: 1.467 MB / 450.7 MB, free: 72.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.8987, allocations: 3.984 kB / 450.7 MB, free: 72.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006206/0.8993, allocations: 79.91 kB / 450.8 MB, free: 71.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003286/0.8997, allocations: 77.8 kB / 450.9 MB, free: 71.9 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.491e-05/0.8997, allocations: 12 kB / 450.9 MB, free: 71.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002535/0.9023, allocations: 2.919 MB / 453.8 MB, free: 68.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.9023, allocations: 4 kB / 453.8 MB, free: 68.7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002045/0.9044, allocations: 0.9146 MB / 454.7 MB, free: 67.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003996/0.9048, allocations: 196.1 kB / 454.9 MB, free: 67.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001586/0.905, allocations: 12 kB / 454.9 MB, free: 67.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007428/0.9058, allocations: 43.92 kB / 455 MB, free: 67.43 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.9059, allocations: 35.89 kB / 455 MB, free: 67.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.9059, allocations: 16 kB / 455 MB, free: 67.38 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009622/0.9069, allocations: 0.5381 MB / 455.6 MB, free: 66.85 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.9069, allocations: 0 / 455.6 MB, free: 66.85 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001272/0.9082, allocations: 248 kB / 455.8 MB, free: 66.61 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * 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%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002642/0.9109, allocations: 2.153 MB / 458 MB, free: 64.39 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.9126, allocations: 0.7269 MB / 458.7 MB, free: 63.64 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.9126, allocations: 0 / 458.7 MB, free: 63.64 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009693/0.9136, allocations: 486.3 kB / 459.2 MB, free: 63.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/0.9153, allocations: 207.6 kB / 459.4 MB, free: 62.94 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01268/0.928, allocations: 11.63 MB / 471 MB, free: 50.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005705/0.9286, allocations: 1.036 MB / 472 MB, free: 49.87 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008273/0.9294, allocations: 111.4 kB / 472.1 MB, free: 49.76 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000626/0.9301, allocations: 387.3 kB / 472.5 MB, free: 49.38 MB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/0.9301, allocations: 0 / 472.5 MB, free: 49.38 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0613/0.9914, allocations: 20.71 MB / 493.2 MB, free: 28.68 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002669/0.9917, allocations: 226.4 kB / 493.4 MB, free: 28.43 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.437/4.429, allocations: 0 / 493.4 MB, free: 28.43 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat