Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003406, allocations: 11.94 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09053/0.0909, allocations: 44.51 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3963/0.4873, allocations: 73.21 MB / 381.7 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003623/0.4877, allocations: 70.38 kB / 381.8 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02845/0.5162, allocations: 4.699 MB / 386.5 MB, free: 13.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.5163, allocations: 4 kB / 386.5 MB, free: 13.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.414e-05/0.5163, allocations: 5.25 kB / 386.5 MB, free: 13.83 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001855/0.5182, allocations: 0.5632 MB / 387.1 MB, free: 13.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.5183, allocations: 9.125 kB / 387.1 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/0.5184, allocations: 57.8 kB / 387.1 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.5185, allocations: 30.3 kB / 387.2 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004917/0.519, allocations: 253.5 kB / 387.4 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.5191, allocations: 14.06 kB / 387.4 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.449e-05/0.5192, allocations: 24.25 kB / 387.5 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.5206, allocations: 322.8 kB / 387.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.5207, allocations: 1.25 kB / 387.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.236e-05/0.5208, allocations: 8.312 kB / 387.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.5208, allocations: 5.156 kB / 387.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/0.5227, allocations: 297.4 kB / 388.1 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003511/0.5262, allocations: 1.266 MB / 389.3 MB, free: 12.24 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004328/0.5306, allocations: 481.8 kB / 389.8 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.987e-05/0.5307, allocations: 7.75 kB / 389.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.5307, allocations: 37.81 kB / 389.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 3.516e-06/0.5308, allocations: 0 / 389.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.01226/0.543, allocations: 1.156 MB / 391 MB, free: 11.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.5431, allocations: 55.31 kB / 391.1 MB, free: 11.9 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004204/0.5436, allocations: 193.9 kB / 391.3 MB, free: 11.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.328e-05/0.5437, allocations: 29.02 kB / 391.3 MB, free: 11.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.5438, allocations: 222.8 kB / 391.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.759e-05/0.5439, allocations: 53.45 kB / 391.6 MB, free: 11.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.544, allocations: 3.125 kB / 391.6 MB, free: 11.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.467e-05/0.544, allocations: 322.3 kB / 391.9 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008172/0.5449, allocations: 116 kB / 392 MB, free: 11.24 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007893/0.5457, allocations: 144 kB / 392.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000796/0.5465, allocations: 121.3 kB / 392.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.5465, allocations: 0 / 392.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.005891/0.5524, allocations: 0.6936 MB / 392.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.5525, allocations: 3.969 kB / 392.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.5525, allocations: 6.141 kB / 393 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/0.5536, allocations: 232.7 kB / 393.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003328/0.554, allocations: 41.8 kB / 393.2 MB, free: 11.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.5652, allocations: 2.692 MB / 395.9 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005278/0.5658, allocations: 47.16 kB / 396 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-05/0.5659, allocations: 9.828 kB / 396 MB, free: 9.688 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (18): * Single equations (assignments): 17 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001931/0.5661, allocations: 138.6 kB / 396.1 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.762e-05/0.5661, allocations: 19.34 kB / 396.1 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.979e-05/0.5662, allocations: 30.42 kB / 396.2 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.5662, allocations: 0 / 396.2 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.5662, allocations: 2.672 kB / 396.2 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.5663, allocations: 3.953 kB / 396.2 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004631/0.5667, allocations: 324.3 kB / 396.5 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.5667, allocations: 0 / 396.5 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002713/0.567, allocations: 33.25 kB / 396.5 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/0.5681, allocations: 232.3 kB / 396.7 MB, free: 9.328 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.773e-05/0.5681, allocations: 2.719 kB / 396.7 MB, free: 9.328 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/0.5791, allocations: 2.682 MB / 399.4 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5792, allocations: 0 / 399.4 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005934/0.5851, allocations: 0.9194 MB / 400.3 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.5853, allocations: 103.2 kB / 400.4 MB, free: 7.645 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.372e-05/0.5854, allocations: 0 / 400.4 MB, free: 7.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000619/0.586, allocations: 45.55 kB / 400.5 MB, free: 7.637 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.833e-05/0.5861, allocations: 14.91 kB / 400.5 MB, free: 7.637 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.5862, allocations: 7.266 kB / 400.5 MB, free: 7.637 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001922/0.5864, allocations: 163.5 kB / 400.7 MB, free: 7.555 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5864, allocations: 0 / 400.7 MB, free: 7.555 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000637/0.587, allocations: 84.78 kB / 400.8 MB, free: 7.543 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * 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 (12): * Single equations (assignments): 11 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.006168/0.5932, allocations: 1.462 MB / 402.2 MB, free: 6.836 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002669/0.5959, allocations: 0.491 MB / 402.7 MB, free: 6.703 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.321e-06/0.596, allocations: 3.75 kB / 402.7 MB, free: 6.703 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001952/0.5979, allocations: 368.3 kB / 403.1 MB, free: 6.574 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004655/0.5984, allocations: 25.73 kB / 403.1 MB, free: 6.574 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008871/0.6073, allocations: 2.499 MB / 405.6 MB, free: 5.418 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.6076, allocations: 0.7513 MB / 406.3 MB, free: 4.715 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.6078, allocations: 74.73 kB / 406.4 MB, free: 4.707 MB / 314.7 MB Notification: Performance of SimCode: time 1.253e-06/0.6078, allocations: 0 / 406.4 MB, free: 4.707 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.749/3.357, allocations: 5.102 MB / 411.5 MB, free: 3.348 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat