Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008106/0.0008105, allocations: 98.47 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.684e-05/1.688e-05, allocations: 4 kB / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0909/0.09093, allocations: 50.42 MB / 387.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3801/0.4711, allocations: 78.16 MB / 465.7 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.4714, allocations: 77.83 kB / 465.8 MB, free: 500 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01385/0.4853, allocations: 4.789 MB / 470.6 MB, free: 11.69 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4853, allocations: 0 / 470.6 MB, free: 11.69 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.697e-05/0.4854, allocations: 4 kB / 470.6 MB, free: 11.68 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.0009623/0.4863, allocations: 0.5381 MB / 471.1 MB, free: 11.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.4864, allocations: 12.03 kB / 471.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.117e-05/0.4865, allocations: 27.62 kB / 471.2 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.4868, allocations: 247.6 kB / 471.4 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.4868, allocations: 4 kB / 471.4 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.4869, allocations: 15.94 kB / 471.4 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003504/0.4872, allocations: 172.7 kB / 471.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003843/0.4876, allocations: 217.8 kB / 471.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.4876, allocations: 4 kB / 471.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.937e-05/0.4877, allocations: 4 kB / 471.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.4877, allocations: 4 kB / 471.8 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.4895, allocations: 1.03 MB / 472.8 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.4908, allocations: 334.5 kB / 473.2 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.491, allocations: 96.84 kB / 473.3 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.4911, allocations: 4 kB / 473.3 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.4911, allocations: 30.56 kB / 473.3 MB, free: 8.777 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.4911, allocations: 0 / 473.3 MB, free: 8.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.002429/0.4935, allocations: 0.5135 MB / 473.8 MB, free: 8.254 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.4936, allocations: 51.41 kB / 473.9 MB, free: 8.191 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.4938, allocations: 174 kB / 474 MB, free: 8.016 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.4938, allocations: 25.7 kB / 474.1 MB, free: 7.984 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.4939, allocations: 163.9 kB / 474.2 MB, free: 7.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.321e-05/0.494, allocations: 51.34 kB / 474.3 MB, free: 7.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.335e-05/0.494, allocations: 0 / 474.3 MB, free: 7.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.4941, allocations: 326.8 kB / 474.6 MB, free: 7.441 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.4942, allocations: 55.98 kB / 474.6 MB, free: 7.387 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.4944, allocations: 78.64 kB / 474.7 MB, free: 7.305 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001272/0.4945, allocations: 61.48 kB / 474.8 MB, free: 7.246 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4945, allocations: 0 / 474.8 MB, free: 7.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002283/0.4968, allocations: 0.537 MB / 475.3 MB, free: 6.699 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.4968, allocations: 5.562 kB / 475.3 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.4968, allocations: 0 / 475.3 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003326/0.4972, allocations: 140.7 kB / 475.5 MB, free: 6.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.4974, allocations: 35.92 kB / 475.5 MB, free: 6.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004298/0.5017, allocations: 2.106 MB / 477.6 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.5019, allocations: 35.91 kB / 477.6 MB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.502, allocations: 15.94 kB / 477.6 MB, free: 4.25 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: zDiode.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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 () * 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.000157/0.5021, allocations: 104.8 kB / 477.7 MB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002288/0.5044, allocations: 0.5139 MB / 478.3 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.201e-05/0.5045, allocations: 27.67 kB / 478.3 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.459e-05/0.5046, allocations: 25.95 kB / 478.3 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.5046, allocations: 0 / 478.3 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.5046, allocations: 3.938 kB / 478.3 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.5046, allocations: 0 / 478.3 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003705/0.505, allocations: 289.9 kB / 478.6 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.505, allocations: 0 / 478.6 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001581/0.5051, allocations: 27.98 kB / 478.6 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000249/0.5054, allocations: 136.8 kB / 478.8 MB, free: 3.082 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.302e-05/0.5054, allocations: 11.88 kB / 478.8 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004516/0.51, allocations: 2.122 MB / 480.9 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.51, allocations: 0 / 480.9 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002524/0.5125, allocations: 0.7071 MB / 481.6 MB, free: 108 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.5127, allocations: 100.8 kB / 481.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.5127, allocations: 0 / 481.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.513, allocations: 39.98 kB / 481.7 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.513, allocations: 11.98 kB / 481.8 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.5131, allocations: 7.984 kB / 481.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001457/0.5132, allocations: 132.6 kB / 481.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5132, allocations: 0 / 481.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004795/0.5137, allocations: 75.84 kB / 482 MB, free: 15.73 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 () * 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.002793/0.5165, allocations: 1.24 MB / 483.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.5176, allocations: 349.7 kB / 483.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.5176, allocations: 7.938 kB / 483.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009025/0.5185, allocations: 301.6 kB / 483.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.5189, allocations: 19.98 kB / 483.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.5199, allocations: 414.9 kB / 484.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.5203, allocations: 0.7514 MB / 485 MB, free: 12.56 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.631e-05/0.5204, allocations: 13.2 kB / 485 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.5205, allocations: 67.41 kB / 485.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of SimCode: time 9.91e-07/0.5205, allocations: 0 / 485.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02765/0.5482, allocations: 5.488 MB / 490.6 MB, free: 7.008 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002882/0.5485, allocations: 149.9 kB / 490.7 MB, free: 6.816 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/2.28, allocations: 7.938 kB / 490.7 MB, free: 6.809 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat