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.0009718/0.0009718, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.19/1.19, allocations: 227.2 MB / 245 MB, free: 7.672 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009035/0.0009036, allocations: 95.7 kB / 297.3 MB, free: 6.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.000277, allocations: 8 kB / 358 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1922, allocations: 51.48 MB / 409.5 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08447/0.2767, allocations: 79.7 MB / 489.2 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001588/0.2768, allocations: 80.72 kB / 489.3 MB, free: 10.85 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01314/0.29, allocations: 4.928 MB / 494.2 MB, free: 5.906 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.29, allocations: 0 / 494.2 MB, free: 5.906 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.29, allocations: 8 kB / 494.2 MB, free: 5.898 MB / 362.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.0009324/0.291, allocations: 0.5612 MB / 494.8 MB, free: 5.289 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.291, allocations: 12.03 kB / 494.8 MB, free: 5.277 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.512e-05/0.2911, allocations: 58.53 kB / 494.8 MB, free: 5.211 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.2912, allocations: 35.72 kB / 494.9 MB, free: 5.176 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002669/0.2915, allocations: 259.4 kB / 495.1 MB, free: 4.879 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.2915, allocations: 16.44 kB / 495.2 MB, free: 4.863 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.2916, allocations: 16 kB / 495.2 MB, free: 4.848 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005982/0.2922, allocations: 306.6 kB / 495.5 MB, free: 4.531 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.2922, allocations: 0 / 495.5 MB, free: 4.531 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.72e-05/0.2922, allocations: 12 kB / 495.5 MB, free: 4.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.2922, allocations: 4 kB / 495.5 MB, free: 4.516 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007175/0.293, allocations: 289.5 kB / 495.8 MB, free: 4.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.2945, allocations: 1.085 MB / 496.8 MB, free: 3.066 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001909/0.2964, allocations: 486.3 kB / 497.3 MB, free: 2.582 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.2965, allocations: 3.984 kB / 497.3 MB, free: 2.578 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.2965, allocations: 34.56 kB / 497.4 MB, free: 2.535 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.2965, allocations: 0 / 497.4 MB, free: 2.535 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.005433/0.3019, allocations: 1.155 MB / 498.5 MB, free: 1.355 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.302, allocations: 51.41 kB / 498.6 MB, free: 1.293 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.3022, allocations: 195.4 kB / 498.8 MB, free: 1.094 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.3022, allocations: 25.7 kB / 498.8 MB, free: 1.062 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.682e-05/0.3023, allocations: 164 kB / 498.9 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.252e-05/0.3024, allocations: 47.36 kB / 499 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.186e-05/0.3024, allocations: 0 / 499 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3025, allocations: 334.8 kB / 499.3 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.3029, allocations: 111.9 kB / 499.4 MB, free: 416 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003328/0.3032, allocations: 133.6 kB / 499.6 MB, free: 276 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003402/0.3036, allocations: 119.9 kB / 499.7 MB, free: 156 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3036, allocations: 4 kB / 499.7 MB, free: 152 kB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003171/0.3067, allocations: 0.6956 MB / 0.4886 GB, free: 15.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3068, allocations: 8 kB / 0.4887 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3068, allocations: 0 / 0.4887 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007032/0.3075, allocations: 232.7 kB / 0.4889 GB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.3077, allocations: 35.92 kB / 0.4889 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006817/0.3145, allocations: 2.692 MB / 0.4915 GB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.3148, allocations: 43.81 kB / 0.4916 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.3148, allocations: 4 kB / 0.4916 GB, free: 12.3 MB / 378.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.0001417/0.3149, allocations: 137.8 kB / 0.4917 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.033e-05/0.315, allocations: 23.77 kB / 0.4917 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.305e-05/0.3151, allocations: 21.53 kB / 0.4918 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3151, allocations: 0 / 0.4918 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-06/0.3151, allocations: 0 / 0.4918 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3151, allocations: 11.92 kB / 0.4918 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003517/0.3154, allocations: 325.2 kB / 0.4921 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3155, allocations: 3.984 kB / 0.4921 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.3156, allocations: 31.94 kB / 0.4921 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006187/0.3163, allocations: 236.7 kB / 0.4923 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/0.3163, allocations: 7.938 kB / 0.4923 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006683/0.323, allocations: 2.681 MB / 0.495 GB, free: 8.633 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.323, allocations: 0 / 0.495 GB, free: 8.633 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003412/0.3264, allocations: 0.9176 MB / 0.4959 GB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.528e-05/0.3265, allocations: 96.88 kB / 0.496 GB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.3265, allocations: 4 kB / 0.496 GB, free: 7.578 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003047/0.3268, allocations: 44.03 kB / 0.496 GB, free: 7.535 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.986e-05/0.3269, allocations: 7.984 kB / 0.496 GB, free: 7.527 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.3269, allocations: 11.95 kB / 0.496 GB, free: 7.516 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001313/0.327, allocations: 157.6 kB / 0.4962 GB, free: 7.363 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3271, allocations: 0 / 0.4962 GB, free: 7.363 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004002/0.3275, allocations: 87.75 kB / 0.4963 GB, free: 7.277 MB / 378.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.003725/0.3312, allocations: 1.459 MB / 0.4977 GB, free: 5.793 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.3328, allocations: 486.4 kB / 0.4981 GB, free: 5.305 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3328, allocations: 4.062 kB / 0.4981 GB, free: 5.301 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.3339, allocations: 370.3 kB / 0.4985 GB, free: 4.926 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.3342, allocations: 41.3 kB / 0.4985 GB, free: 4.891 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005421/0.3396, allocations: 2.142 MB / 0.5006 GB, free: 2.688 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.34, allocations: 0.7518 MB / 0.5014 GB, free: 1.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.965e-05/0.34, allocations: 17.53 kB / 0.5014 GB, free: 1.891 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.494e-05/0.3401, allocations: 67.42 kB / 0.5014 GB, free: 1.824 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3401, allocations: 0 / 0.5014 GB, free: 1.824 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1564/0.4966, allocations: 6.551 MB / 0.5078 GB, free: 96.89 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/0.4967, allocations: 214.2 kB / 0.508 GB, free: 96.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/2.203, allocations: 0 / 0.508 GB, free: 96.65 MB / 378.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