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.002185/0.00219, allocations: 181.5 kB / 8.365 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.152/2.152, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001139/0.001138, allocations: 82.67 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.868e-05/2.876e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3463, allocations: 47.56 MB / 362.4 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1465/0.4928, allocations: 76.65 MB / 439.1 MB, free: 9.652 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.4932, allocations: 69 kB / 439.2 MB, free: 9.586 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02957/0.5228, allocations: 4.614 MB / 443.8 MB, free: 4.988 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5228, allocations: 0 / 443.8 MB, free: 4.988 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.757e-05/0.5229, allocations: 4 kB / 443.8 MB, free: 4.984 MB / 331.1 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.001973/0.5249, allocations: 0.5336 MB / 444.3 MB, free: 4.41 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.162e-05/0.5249, allocations: 8.031 kB / 444.3 MB, free: 4.402 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.5251, allocations: 34.69 kB / 444.3 MB, free: 4.371 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005645/0.5257, allocations: 255.4 kB / 444.6 MB, free: 4.078 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.856e-05/0.5257, allocations: 8 kB / 444.6 MB, free: 4.07 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-05/0.5258, allocations: 17.69 kB / 444.6 MB, free: 4.055 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007823/0.5266, allocations: 160.8 kB / 444.8 MB, free: 3.898 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008122/0.5275, allocations: 217.8 kB / 445 MB, free: 3.668 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.5275, allocations: 3.938 kB / 445 MB, free: 3.664 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.09e-05/0.5276, allocations: 0 / 445 MB, free: 3.664 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.5276, allocations: 4 kB / 445 MB, free: 3.66 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003674/0.5313, allocations: 1.035 MB / 446 MB, free: 2.562 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003387/0.5347, allocations: 342.3 kB / 446.4 MB, free: 2.219 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004227/0.5352, allocations: 96.84 kB / 446.5 MB, free: 2.121 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.999e-05/0.5353, allocations: 0 / 446.5 MB, free: 2.121 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.683e-05/0.5353, allocations: 42.56 kB / 446.5 MB, free: 2.07 MB / 331.1 MB Notification: Performance of pre-optimization done (n=14): time 3.396e-06/0.5354, allocations: 0 / 446.5 MB, free: 2.07 MB / 331.1 MB Notification: Performance of matching and sorting (n=14): time 0.006587/0.542, allocations: 0.5028 MB / 447 MB, free: 1.559 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.585e-05/0.5421, allocations: 63.34 kB / 447.1 MB, free: 1.484 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004115/0.5425, allocations: 178.7 kB / 447.2 MB, free: 1.305 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 7.836e-05/0.5426, allocations: 25.7 kB / 447.3 MB, free: 1.273 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.5428, allocations: 214.5 kB / 447.5 MB, free: 1.062 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.81e-05/0.5429, allocations: 43.36 kB / 447.5 MB, free: 1.02 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.867e-05/0.543, allocations: 8 kB / 447.5 MB, free: 1.012 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.5432, allocations: 324.9 kB / 447.8 MB, free: 0.6875 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002814/0.5435, allocations: 56 kB / 447.9 MB, free: 0.6328 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003138/0.5438, allocations: 76.36 kB / 448 MB, free: 0.5547 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.5442, allocations: 55.97 kB / 448 MB, free: 0.5 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.5442, allocations: 2.438 kB / 448 MB, free: 0.5 MB / 331.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.006544/0.5507, allocations: 0.5214 MB / 448.6 MB, free: 15.97 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.876e-05/0.5508, allocations: 12 kB / 448.6 MB, free: 15.96 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.5509, allocations: 0 / 448.6 MB, free: 15.96 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007257/0.5516, allocations: 132.8 kB / 448.7 MB, free: 15.82 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004885/0.5521, allocations: 39.92 kB / 448.7 MB, free: 15.79 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/0.5633, allocations: 2.087 MB / 450.8 MB, free: 13.58 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007139/0.5641, allocations: 40.78 kB / 450.9 MB, free: 13.54 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.654e-05/0.5641, allocations: 11.98 kB / 450.9 MB, free: 13.53 MB / 347.1 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.0002583/0.5644, allocations: 109.8 kB / 451 MB, free: 13.42 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006409/0.5708, allocations: 0.5155 MB / 451.5 MB, free: 12.89 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.5711, allocations: 15.81 kB / 451.5 MB, free: 12.88 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001267/0.5712, allocations: 21.95 kB / 451.5 MB, free: 12.86 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.5712, allocations: 4 kB / 451.5 MB, free: 12.86 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.5713, allocations: 4.75 kB / 451.5 MB, free: 12.86 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.5713, allocations: 4.078 kB / 451.5 MB, free: 12.85 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007887/0.5721, allocations: 297.7 kB / 451.8 MB, free: 12.52 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.5721, allocations: 0 / 451.8 MB, free: 12.52 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004227/0.5726, allocations: 27.98 kB / 451.9 MB, free: 12.5 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006695/0.5733, allocations: 137.6 kB / 452 MB, free: 12.36 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.556e-05/0.5733, allocations: 7.984 kB / 452 MB, free: 12.35 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/0.5851, allocations: 2.115 MB / 454.1 MB, free: 10.12 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/0.5851, allocations: 0 / 454.1 MB, free: 10.12 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006951/0.5921, allocations: 0.6951 MB / 454.8 MB, free: 9.406 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.5923, allocations: 92.89 kB / 454.9 MB, free: 9.297 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.338e-05/0.5924, allocations: 6.781 kB / 454.9 MB, free: 9.293 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008005/0.5932, allocations: 35.97 kB / 454.9 MB, free: 9.258 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.03e-05/0.5934, allocations: 19.88 kB / 455 MB, free: 9.238 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.693e-05/0.5934, allocations: 11.92 kB / 455 MB, free: 9.23 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002693/0.5937, allocations: 136.6 kB / 455.1 MB, free: 9.098 MB / 347.1 MB Notification: Performance of sort global known variables: time 6.81e-07/0.5937, allocations: 0 / 455.1 MB, free: 9.098 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.001049/0.5948, allocations: 79.84 kB / 455.2 MB, free: 9.02 MB / 347.1 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.007458/0.6023, allocations: 1.242 MB / 456.4 MB, free: 7.75 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.002643/0.605, allocations: 354.5 kB / 456.8 MB, free: 7.395 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.605, allocations: 3.938 kB / 456.8 MB, free: 7.391 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002374/0.6074, allocations: 293.7 kB / 457.1 MB, free: 7.094 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000603/0.608, allocations: 32.94 kB / 457.1 MB, free: 7.066 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002366/0.6104, allocations: 432.7 kB / 457.5 MB, free: 6.602 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000539/0.611, allocations: 0.7475 MB / 458.3 MB, free: 5.828 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.6112, allocations: 71.41 kB / 458.3 MB, free: 5.758 MB / 347.1 MB Notification: Performance of SimCode: time 1.222e-06/0.6113, allocations: 0 / 458.3 MB, free: 5.758 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.726/3.337, allocations: 4.843 MB / 463.2 MB, free: 0.9336 MB / 347.1 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