Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.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.MultiPhase.Examples.TestSensors,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.634/1.634, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.000355, allocations: 11.98 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07844/0.07884, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3341/0.413, allocations: 72.62 MB / 344.7 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/0.4133, allocations: 81.27 kB / 344.8 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08586/0.4992, allocations: 21.44 MB / 366.2 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4993, allocations: 0 / 366.2 MB, free: 14.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001154/0.4994, allocations: 43.92 kB / 366.3 MB, free: 14.8 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 354 * Number of variables: 354 Notification: Performance of Generate backend data structure: time 0.004641/0.504, allocations: 1.527 MB / 367.8 MB, free: 13.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.5041, allocations: 12.03 kB / 367.8 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006657/0.5048, allocations: 217 kB / 368 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000765/0.5056, allocations: 180.8 kB / 368.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00239/0.508, allocations: 0.9327 MB / 369.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.5081, allocations: 105.9 kB / 369.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003413/0.5085, allocations: 134.2 kB / 369.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004678/0.5132, allocations: 1.84 MB / 371.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.833e-05/0.5132, allocations: 0 / 371.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001974/0.5135, allocations: 58.19 kB / 371.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.115e-05/0.5135, allocations: 35.95 kB / 371.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003919/0.5174, allocations: 1.374 MB / 372.7 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01218/0.5297, allocations: 5.006 MB / 377.7 MB, free: 5.926 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001507/0.5312, allocations: 0.9821 MB / 378.7 MB, free: 4.828 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.388e-05/0.5313, allocations: 4 kB / 378.7 MB, free: 4.824 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.5313, allocations: 38.5 kB / 378.7 MB, free: 4.777 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 3.056e-06/0.5314, allocations: 0 / 378.7 MB, free: 4.777 MB / 298.7 MB Notification: Performance of matching and sorting (n=43): time 0.005102/0.5365, allocations: 1.838 MB / 380.5 MB, free: 2.875 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.5366, allocations: 55.41 kB / 380.6 MB, free: 2.809 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.5379, allocations: 0.6231 MB / 381.2 MB, free: 2.176 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.166e-05/0.538, allocations: 29.7 kB / 381.3 MB, free: 2.141 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005414/0.5385, allocations: 0.6368 MB / 381.9 MB, free: 1.496 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/0.5387, allocations: 157.7 kB / 382 MB, free: 1.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.73e-05/0.5388, allocations: 12 kB / 382.1 MB, free: 1.328 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.5389, allocations: 334.8 kB / 382.4 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007574/0.5397, allocations: 276.9 kB / 382.7 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008658/0.5406, allocations: 413.3 kB / 383.1 MB, free: 264 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009115/0.5415, allocations: 348.6 kB / 383.4 MB, free: 15.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.5415, allocations: 7.953 kB / 383.4 MB, free: 15.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00213/0.5437, allocations: 0.8129 MB / 384.2 MB, free: 15.08 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.5437, allocations: 5.094 kB / 384.2 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.941e-05/0.5437, allocations: 4 kB / 384.2 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003535/0.5441, allocations: 92.61 kB / 384.3 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009176/0.545, allocations: 119.8 kB / 384.4 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00274/0.5478, allocations: 1.943 MB / 386.4 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007411/0.5486, allocations: 32.3 kB / 386.4 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.364e-05/0.5487, allocations: 27.98 kB / 386.4 MB, free: 12.73 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (59): * Single equations (assignments): 58 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001159/0.5498, allocations: 0.4975 MB / 386.9 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.55, allocations: 67.23 kB / 387 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002106/0.5502, allocations: 78.09 kB / 387.1 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.5503, allocations: 7.938 kB / 387.1 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.5503, allocations: 8 kB / 387.1 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.5503, allocations: 3.984 kB / 387.1 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00624/0.5565, allocations: 1.964 MB / 389.1 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.5566, allocations: 0 / 389.1 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006302/0.5572, allocations: 67.95 kB / 389.1 MB, free: 9.965 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003157/0.5576, allocations: 84.72 kB / 389.2 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.888e-05/0.5576, allocations: 15.98 kB / 389.2 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002605/0.5603, allocations: 1.916 MB / 391.1 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5603, allocations: 0 / 391.1 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002738/0.563, allocations: 1.115 MB / 392.3 MB, free: 6.656 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004379/0.5635, allocations: 192.3 kB / 392.4 MB, free: 6.449 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001278/0.5636, allocations: 15.98 kB / 392.5 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000602/0.5643, allocations: 40.03 kB / 392.5 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001743/0.5644, allocations: 39.84 kB / 392.5 MB, free: 6.355 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.885e-05/0.5645, allocations: 15.98 kB / 392.6 MB, free: 6.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009958/0.5655, allocations: 490.7 kB / 393 MB, free: 5.863 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5655, allocations: 0 / 393 MB, free: 5.863 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001119/0.5667, allocations: 204 kB / 393.2 MB, free: 5.664 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * 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 (37): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003152/0.5698, allocations: 1.823 MB / 395.1 MB, free: 3.797 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.5719, allocations: 0.7631 MB / 395.8 MB, free: 3.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.5719, allocations: 0 / 395.8 MB, free: 3.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.5731, allocations: 443 kB / 396.3 MB, free: 2.574 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.5744, allocations: 162.3 kB / 396.4 MB, free: 2.414 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01674/0.5912, allocations: 8.5 MB / 404.9 MB, free: 9.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001978/0.5932, allocations: 1.422 MB / 406.3 MB, free: 8.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001112/0.5943, allocations: 411.3 kB / 406.7 MB, free: 7.918 MB / 330.7 MB Notification: Performance of SimCode: time 1.523e-06/0.5943, allocations: 0 / 406.7 MB, free: 7.918 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.204/3.799, allocations: 25.33 MB / 432.1 MB, free: 99.8 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors_res.mat does not exist to compare? outputFormat=mat