Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002043/0.002043, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.653/1.653, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008619/0.000862, allocations: 93.16 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.078e-05/3.091e-05, allocations: 4 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0995/0.09955, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3312/0.4308, allocations: 79.64 MB / 481.8 MB, free: 9.816 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.431, allocations: 69.38 kB / 481.8 MB, free: 9.781 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01268/0.4437, allocations: 4.931 MB / 486.8 MB, free: 5.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4437, allocations: 0 / 486.8 MB, free: 5.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.4438, allocations: 8 kB / 486.8 MB, free: 5.582 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.0008661/0.4446, allocations: 0.534 MB / 487.3 MB, free: 5.027 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.4447, allocations: 8.031 kB / 487.3 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.928e-05/0.4448, allocations: 55.67 kB / 487.4 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001628/0.4449, allocations: 44.47 kB / 487.4 MB, free: 4.926 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.4452, allocations: 258 kB / 487.7 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.4452, allocations: 14.88 kB / 487.7 MB, free: 4.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.044e-05/0.4453, allocations: 18.31 kB / 487.7 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003757/0.4456, allocations: 247.7 kB / 487.9 MB, free: 4.441 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.4457, allocations: 4 kB / 487.9 MB, free: 4.438 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.4457, allocations: 9.312 kB / 487.9 MB, free: 4.438 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.4457, allocations: 4 kB / 488 MB, free: 4.434 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002935/0.446, allocations: 176.5 kB / 488.1 MB, free: 4.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.4474, allocations: 1.086 MB / 489.2 MB, free: 3.332 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.4486, allocations: 338.7 kB / 489.5 MB, free: 3.055 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.4488, allocations: 103.7 kB / 489.6 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.4488, allocations: 4 kB / 489.6 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.631e-05/0.4488, allocations: 34.56 kB / 489.7 MB, free: 2.941 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.4488, allocations: 0 / 489.7 MB, free: 2.941 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.002349/0.4512, allocations: 0.5182 MB / 490.2 MB, free: 2.473 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.505e-05/0.4512, allocations: 52.53 kB / 490.3 MB, free: 2.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.4514, allocations: 185.3 kB / 490.4 MB, free: 2.246 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.4514, allocations: 33.2 kB / 490.5 MB, free: 2.211 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.295e-05/0.4515, allocations: 162.6 kB / 490.6 MB, free: 2.074 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.338e-05/0.4515, allocations: 50.97 kB / 490.7 MB, free: 2.031 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.233e-05/0.4516, allocations: 3.938 kB / 490.7 MB, free: 2.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.372e-05/0.4516, allocations: 334.5 kB / 491 MB, free: 1.703 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.4517, allocations: 58.67 kB / 491.1 MB, free: 1.668 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.4518, allocations: 80.11 kB / 491.1 MB, free: 1.613 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.452, allocations: 66.78 kB / 491.2 MB, free: 1.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.452, allocations: 7.938 kB / 491.2 MB, free: 1.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002196/0.4542, allocations: 0.5357 MB / 491.7 MB, free: 1.082 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.4542, allocations: 10.16 kB / 491.8 MB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.4542, allocations: 0 / 491.8 MB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003633/0.4546, allocations: 141.1 kB / 491.9 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.4548, allocations: 44.11 kB / 491.9 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004603/0.4594, allocations: 2.172 MB / 494.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002837/0.4597, allocations: 39.84 kB / 494.1 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.4597, allocations: 8 kB / 494.2 MB, free: 14.75 MB / 362.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 () * 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 9.733e-05/0.4598, allocations: 113 kB / 494.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.664e-05/0.4599, allocations: 19.77 kB / 494.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.661e-05/0.46, allocations: 33.72 kB / 494.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.46, allocations: 3.938 kB / 494.3 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.46, allocations: 0 / 494.3 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.46, allocations: 0 / 494.3 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004266/0.4604, allocations: 328.8 kB / 494.6 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.4604, allocations: 5.328 kB / 494.6 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.4606, allocations: 39.97 kB / 494.7 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002567/0.4609, allocations: 128.8 kB / 494.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.4609, allocations: 5.766 kB / 494.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004738/0.4657, allocations: 2.178 MB / 497 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4657, allocations: 4.094 kB / 497 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002534/0.4682, allocations: 0.7153 MB / 497.7 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.375e-05/0.4683, allocations: 92.95 kB / 497.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.87e-05/0.4683, allocations: 0 / 497.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002908/0.4686, allocations: 44.53 kB / 497.9 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.363e-05/0.4687, allocations: 11.94 kB / 497.9 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-05/0.4687, allocations: 11.98 kB / 497.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001425/0.4689, allocations: 149.6 kB / 498 MB, free: 10.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.583e-06/0.4689, allocations: 0 / 498 MB, free: 10.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004387/0.4693, allocations: 95.72 kB / 498.1 MB, free: 10.58 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.002851/0.4722, allocations: 1.255 MB / 499.4 MB, free: 9.293 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.4734, allocations: 392.2 kB / 499.8 MB, free: 8.898 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4734, allocations: 0 / 499.8 MB, free: 8.898 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009124/0.4743, allocations: 310.4 kB / 0.4883 GB, free: 8.582 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.4746, allocations: 37.91 kB / 0.4884 GB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.4757, allocations: 417.7 kB / 0.4888 GB, free: 8.109 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.4761, allocations: 0.7519 MB / 0.4895 GB, free: 7.328 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.131e-05/0.4762, allocations: 22.09 kB / 0.4895 GB, free: 7.309 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.4763, allocations: 67.41 kB / 0.4896 GB, free: 7.242 MB / 362.7 MB Notification: Performance of SimCode: time 8.31e-07/0.4763, allocations: 0 / 0.4896 GB, free: 7.242 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01976/0.496, allocations: 6.499 MB / 0.4959 GB, free: 1.008 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001711/0.4963, allocations: 189.4 kB / 0.4961 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.406, allocations: 0 / 0.4961 GB, free: 0.7891 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat