Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001513/0.001518, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.962/1.962, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001115/0.001114, allocations: 102.1 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003799/0.0003799, allocations: 11.98 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3291, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1206/0.4498, allocations: 77.4 MB / 452 MB, free: 3.219 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.4501, allocations: 71.95 kB / 452.1 MB, free: 3.148 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02182/0.472, allocations: 4.667 MB / 456.8 MB, free: 14.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.472, allocations: 0 / 456.8 MB, free: 14.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.261e-05/0.4721, allocations: 4 kB / 456.8 MB, free: 14.46 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001502/0.4736, allocations: 0.5651 MB / 457.3 MB, free: 13.85 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.4736, allocations: 8.031 kB / 457.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.223e-05/0.4737, allocations: 54.55 kB / 457.4 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.592e-05/0.4738, allocations: 27.72 kB / 457.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.4742, allocations: 255.5 kB / 457.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.4743, allocations: 16.44 kB / 457.7 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.981e-05/0.4744, allocations: 23.98 kB / 457.7 MB, free: 13.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.4755, allocations: 306.5 kB / 458 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.4755, allocations: 0 / 458 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.794e-05/0.4756, allocations: 16 kB / 458 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.4756, allocations: 4 kB / 458 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.477, allocations: 281.6 kB / 458.3 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002713/0.4797, allocations: 1.086 MB / 459.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003435/0.4831, allocations: 494.2 kB / 459.9 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.393e-05/0.4832, allocations: 0 / 459.9 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.4833, allocations: 34.56 kB / 459.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.4833, allocations: 0 / 459.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.009535/0.4928, allocations: 1.151 MB / 461.1 MB, free: 9.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.4929, allocations: 55.34 kB / 461.1 MB, free: 9.863 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000308/0.4932, allocations: 188.8 kB / 461.3 MB, free: 9.672 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.659e-05/0.4933, allocations: 33.64 kB / 461.3 MB, free: 9.633 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.4934, allocations: 218.4 kB / 461.5 MB, free: 9.418 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.352e-05/0.4935, allocations: 47.36 kB / 461.6 MB, free: 9.371 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.533e-05/0.4935, allocations: 0 / 461.6 MB, free: 9.371 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.4937, allocations: 318.8 kB / 461.9 MB, free: 9.051 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006098/0.4943, allocations: 115.9 kB / 462 MB, free: 8.938 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00065/0.495, allocations: 133.6 kB / 462.2 MB, free: 8.801 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006386/0.4956, allocations: 123 kB / 462.3 MB, free: 8.684 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.4956, allocations: 0 / 462.3 MB, free: 8.684 MB / 346.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.005593/0.5012, allocations: 0.6854 MB / 463 MB, free: 7.988 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.5013, allocations: 4 kB / 463 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.5013, allocations: 4 kB / 463 MB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001214/0.5025, allocations: 232.7 kB / 463.2 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003207/0.5029, allocations: 39.92 kB / 463.2 MB, free: 7.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01236/0.5152, allocations: 2.689 MB / 465.9 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004996/0.5158, allocations: 39.88 kB / 466 MB, free: 4.844 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.5158, allocations: 4 kB / 466 MB, free: 4.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (16): * Single equations (assignments): 15 * 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.00021/0.516, allocations: 129.9 kB / 466.1 MB, free: 4.703 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.126e-05/0.5161, allocations: 19.77 kB / 466.1 MB, free: 4.684 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.549e-05/0.5162, allocations: 29.52 kB / 466.1 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.5162, allocations: 0 / 466.1 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.5162, allocations: 0 / 466.1 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.5163, allocations: 0 / 466.1 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005444/0.5168, allocations: 329.3 kB / 466.5 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.5168, allocations: 0 / 466.5 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000293/0.5171, allocations: 39.91 kB / 466.5 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00113/0.5183, allocations: 232.6 kB / 466.7 MB, free: 4.016 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.652e-05/0.5183, allocations: 4 kB / 466.7 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01213/0.5305, allocations: 2.681 MB / 469.4 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.5305, allocations: 0 / 469.4 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006338/0.5368, allocations: 0.9166 MB / 470.3 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.537, allocations: 104.8 kB / 470.4 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.574e-05/0.5371, allocations: 3.984 kB / 470.4 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005112/0.5376, allocations: 40.14 kB / 470.5 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.248e-05/0.5377, allocations: 11.97 kB / 470.5 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-05/0.5377, allocations: 7.984 kB / 470.5 MB, free: 80 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002389/0.538, allocations: 168.4 kB / 470.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.538, allocations: 0 / 470.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006198/0.5386, allocations: 79.84 kB / 470.7 MB, free: 15.84 MB / 362.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.006679/0.5453, allocations: 1.455 MB / 472.2 MB, free: 14.35 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002805/0.5481, allocations: 498.8 kB / 472.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.5482, allocations: 0 / 472.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002053/0.5502, allocations: 362.5 kB / 473 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004291/0.5507, allocations: 36.58 kB / 473.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009194/0.5599, allocations: 2.17 MB / 475.2 MB, free: 11.22 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/0.5603, allocations: 0.7517 MB / 476 MB, free: 10.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001667/0.5605, allocations: 71.41 kB / 476.1 MB, free: 10.38 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5605, allocations: 0 / 476.1 MB, free: 10.38 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.53/3.09, allocations: 5 MB / 481.1 MB, free: 5.375 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat