Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.596/1.596, allocations: 171.2 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003505, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0822/0.08259, allocations: 38.77 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3865/0.4692, allocations: 88.89 MB / 361 MB, free: 388 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003227/0.4695, allocations: 84.02 kB / 361.1 MB, free: 340 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1242/0.5938, allocations: 28.7 MB / 389.8 MB, free: 8.109 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.746e-06/0.5939, allocations: 0 / 389.8 MB, free: 8.109 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001015/0.594, allocations: 31.48 kB / 389.8 MB, free: 8.082 MB / 314.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.004014/0.598, allocations: 1.286 MB / 391.1 MB, free: 6.828 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.5981, allocations: 11.97 kB / 391.1 MB, free: 6.816 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004675/0.5985, allocations: 152.2 kB / 391.3 MB, free: 6.723 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001068/0.5996, allocations: 194.3 kB / 391.5 MB, free: 6.531 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002549/0.6022, allocations: 0.8019 MB / 392.3 MB, free: 5.863 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.292e-05/0.6023, allocations: 79.58 kB / 392.3 MB, free: 5.812 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002292/0.6026, allocations: 100.3 kB / 392.4 MB, free: 5.746 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002746/0.6053, allocations: 0.9394 MB / 393.4 MB, free: 5.094 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.234e-05/0.6054, allocations: 7.938 kB / 393.4 MB, free: 5.086 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001324/0.6056, allocations: 40.75 kB / 393.4 MB, free: 5.078 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.086e-05/0.6056, allocations: 24 kB / 393.5 MB, free: 5.055 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002162/0.6078, allocations: 0.6631 MB / 394.1 MB, free: 4.617 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009004/0.6168, allocations: 3.962 MB / 398.1 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.6181, allocations: 461.2 kB / 398.5 MB, free: 408 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.437e-05/0.6181, allocations: 4 kB / 398.5 MB, free: 404 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.6182, allocations: 42.56 kB / 398.6 MB, free: 352 kB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.587e-06/0.6182, allocations: 0 / 398.6 MB, free: 352 kB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.004812/0.623, allocations: 1.501 MB / 400.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.6231, allocations: 85.55 kB / 400.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.6247, allocations: 0.7113 MB / 400.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.5e-05/0.6248, allocations: 37.69 kB / 400.9 MB, free: 13.9 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005705/0.6254, allocations: 0.5721 MB / 401.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.6256, allocations: 165.6 kB / 401.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.713e-05/0.6257, allocations: 19.94 kB / 401.7 MB, free: 13.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.6259, allocations: 333.9 kB / 402 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006452/0.6265, allocations: 181.9 kB / 402.2 MB, free: 12.63 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008307/0.6274, allocations: 476 kB / 402.6 MB, free: 12.03 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007991/0.6282, allocations: 260.7 kB / 402.9 MB, free: 11.78 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.28e-05/0.6282, allocations: 4 kB / 402.9 MB, free: 11.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002337/0.6306, allocations: 0.8052 MB / 403.7 MB, free: 10.96 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.6306, allocations: 8 kB / 403.7 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.6307, allocations: 8 kB / 403.7 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004184/0.6311, allocations: 93.89 kB / 403.8 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.6321, allocations: 159.8 kB / 404 MB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00333/0.6355, allocations: 2.931 MB / 406.9 MB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.6367, allocations: 47.89 kB / 406.9 MB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.968e-05/0.6368, allocations: 39.95 kB / 407 MB, free: 7.398 MB / 330.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.0007229/0.6375, allocations: 269.6 kB / 407.2 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002526/0.6378, allocations: 90.88 kB / 407.3 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001711/0.6395, allocations: 0.5184 MB / 407.8 MB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.6395, allocations: 4 kB / 407.8 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.6395, allocations: 0 / 407.8 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.6396, allocations: 4 kB / 407.8 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003949/0.6435, allocations: 1.478 MB / 409.3 MB, free: 4.926 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.6436, allocations: 0 / 409.3 MB, free: 4.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006913/0.6443, allocations: 88.11 kB / 409.4 MB, free: 4.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003475/0.6446, allocations: 69.69 kB / 409.5 MB, free: 4.766 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.644e-05/0.6447, allocations: 11.98 kB / 409.5 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003419/0.6481, allocations: 2.908 MB / 412.4 MB, free: 1.578 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.6482, allocations: 4 kB / 412.4 MB, free: 1.574 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002463/0.6507, allocations: 0.9222 MB / 413.3 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005365/0.6512, allocations: 207.9 kB / 413.5 MB, free: 344 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.6514, allocations: 15.94 kB / 413.5 MB, free: 328 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007519/0.6522, allocations: 35.98 kB / 413.6 MB, free: 292 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.6523, allocations: 35.94 kB / 413.6 MB, free: 256 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.373e-05/0.6524, allocations: 16 kB / 413.6 MB, free: 240 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001186/0.6536, allocations: 0.5381 MB / 414.2 MB, free: 15.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6536, allocations: 4 kB / 414.2 MB, free: 15.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001444/0.6551, allocations: 251.9 kB / 414.4 MB, free: 15.45 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.003503/0.6586, allocations: 2.135 MB / 416.6 MB, free: 13.24 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002067/0.6607, allocations: 0.7331 MB / 417.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.6607, allocations: 1.938 kB / 417.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.6619, allocations: 477.8 kB / 417.8 MB, free: 11.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001734/0.6637, allocations: 212.2 kB / 418 MB, free: 11.78 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2383/0.902, allocations: 11.63 MB / 429.6 MB, free: 96.54 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007499/0.9028, allocations: 1.036 MB / 430.6 MB, free: 95.83 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008208/0.9036, allocations: 110 kB / 430.7 MB, free: 95.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007124/0.9044, allocations: 386.8 kB / 431.1 MB, free: 95.82 MB / 346.7 MB Notification: Performance of SimCode: time 1.362e-06/0.9044, allocations: 1.375 kB / 431.1 MB, free: 95.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08179/0.9862, allocations: 20.71 MB / 451.8 MB, free: 94.57 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.9864, allocations: 216.7 kB / 452 MB, free: 94.33 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.366/4.352, allocations: 4 kB / 452 MB, free: 94.32 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat