Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.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.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.678/1.678, allocations: 171.2 MB / 186.8 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005379/0.0005379, allocations: 8 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.09543, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3707/0.4662, allocations: 75.67 MB / 347.8 MB, free: 13.82 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.4666, allocations: 86.27 kB / 347.9 MB, free: 13.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07928/0.5458, allocations: 19.69 MB / 367.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.5459, allocations: 0 / 367.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.863e-05/0.546, allocations: 24 kB / 367.6 MB, free: 13.41 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: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.003942/0.5499, allocations: 1.154 MB / 368.7 MB, free: 12.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.55, allocations: 8.031 kB / 368.7 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003827/0.5504, allocations: 140.2 kB / 368.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007219/0.5511, allocations: 142.4 kB / 369 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001157/0.5523, allocations: 0.4953 MB / 369.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.986e-05/0.5524, allocations: 71.81 kB / 369.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002049/0.5526, allocations: 89.94 kB / 369.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002604/0.5552, allocations: 0.9125 MB / 370.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.394e-05/0.5553, allocations: 7.875 kB / 370.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.5555, allocations: 35.62 kB / 370.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.191e-05/0.5555, allocations: 27.95 kB / 370.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002474/0.558, allocations: 0.7089 MB / 371.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007704/0.5657, allocations: 3.24 MB / 374.6 MB, free: 7.652 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002362/0.5682, allocations: 0.928 MB / 375.5 MB, free: 6.898 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.272e-05/0.5683, allocations: 8.562 kB / 375.5 MB, free: 6.891 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001232/0.5695, allocations: 439.6 kB / 376 MB, free: 6.535 MB / 298.7 MB Notification: Performance of pre-optimization done (n=69): time 3.677e-06/0.5696, allocations: 0 / 376 MB, free: 6.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.007653/0.5772, allocations: 1.547 MB / 377.5 MB, free: 5.219 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.5774, allocations: 192.2 kB / 377.7 MB, free: 4.992 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007696/0.5782, allocations: 384.5 kB / 378.1 MB, free: 4.688 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001619/0.5783, allocations: 40.2 kB / 378.1 MB, free: 4.652 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003975/0.5788, allocations: 435.4 kB / 378.5 MB, free: 4.293 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003004/0.5791, allocations: 225.4 kB / 378.8 MB, free: 4.102 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.413e-05/0.5791, allocations: 10.5 kB / 378.8 MB, free: 4.102 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.5793, allocations: 348.4 kB / 379.1 MB, free: 3.766 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008612/0.5802, allocations: 230.5 kB / 379.3 MB, free: 3.613 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.5812, allocations: 441.9 kB / 379.8 MB, free: 3.188 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009543/0.5822, allocations: 280.5 kB / 380 MB, free: 3.016 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/0.5822, allocations: 112 / 380 MB, free: 3.016 MB / 298.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.003067/0.5853, allocations: 0.8926 MB / 380.9 MB, free: 2.359 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.5854, allocations: 11.98 kB / 380.9 MB, free: 2.348 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.155e-05/0.5854, allocations: 12.06 kB / 381 MB, free: 2.336 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001431/0.5868, allocations: 267 kB / 381.2 MB, free: 2.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009346/0.5878, allocations: 123.8 kB / 381.3 MB, free: 1.969 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008386/0.5962, allocations: 4.462 MB / 385.8 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.5973, allocations: 95.3 kB / 385.9 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.054e-05/0.5974, allocations: 36 kB / 385.9 MB, free: 13.12 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * 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: 0 * Non-linear torn systems: 2 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0006152/0.598, allocations: 237.6 kB / 386.2 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/0.5982, allocations: 59.25 kB / 386.2 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003232/0.6014, allocations: 0.8538 MB / 387.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/0.6015, allocations: 8.094 kB / 387.1 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.6015, allocations: 3.984 kB / 387.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.6015, allocations: 3.984 kB / 387.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004725/0.6062, allocations: 1.671 MB / 388.8 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.6063, allocations: 0 / 388.8 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007202/0.607, allocations: 75.89 kB / 388.8 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001382/0.6084, allocations: 265.6 kB / 389.1 MB, free: 9.859 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.991e-05/0.6085, allocations: 12 kB / 389.1 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008113/0.6167, allocations: 4.427 MB / 393.5 MB, free: 5.156 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.6167, allocations: 0 / 393.5 MB, free: 5.156 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004138/0.6209, allocations: 1.225 MB / 394.8 MB, free: 3.902 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004668/0.6214, allocations: 200.1 kB / 394.9 MB, free: 3.688 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/0.6215, allocations: 16 kB / 395 MB, free: 3.672 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007384/0.6223, allocations: 51.91 kB / 395 MB, free: 3.621 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/0.6225, allocations: 56.47 kB / 395.1 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.294e-05/0.6226, allocations: 24 kB / 395.1 MB, free: 3.543 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005628/0.6232, allocations: 299.1 kB / 395.4 MB, free: 3.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6232, allocations: 3.938 kB / 395.4 MB, free: 3.246 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001472/0.6247, allocations: 279.1 kB / 395.7 MB, free: 2.973 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.004615/0.6293, allocations: 1.89 MB / 397.6 MB, free: 1.043 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002923/0.6323, allocations: 0.9759 MB / 398.5 MB, free: 40 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.6323, allocations: 0 / 398.5 MB, free: 40 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.6342, allocations: 0.6831 MB / 399.2 MB, free: 15.33 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008573/0.6351, allocations: 95.17 kB / 399.3 MB, free: 15.24 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006735/0.6418, allocations: 5.81 MB / 405.1 MB, free: 9.266 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007785/0.6427, allocations: 0.9934 MB / 406.1 MB, free: 8.246 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006371/0.6433, allocations: 287.3 kB / 406.4 MB, free: 7.965 MB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.6434, allocations: 4 kB / 406.4 MB, free: 7.961 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.946/3.59, allocations: 17.99 MB / 424.4 MB, free: 5.961 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat