Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009931/0.0009931, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008441/0.0008441, allocations: 92.62 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002042/0.0002042, allocations: 8 kB / 358 MB, free: 9.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.176/0.1762, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08854/0.2647, allocations: 81.55 MB / 491.1 MB, free: 9.043 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.265, allocations: 83.94 kB / 491.2 MB, free: 8.961 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01607/0.2811, allocations: 5.878 MB / 497 MB, free: 3.062 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2811, allocations: 0 / 497 MB, free: 3.062 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.2811, allocations: 4 kB / 497 MB, free: 3.059 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.0009705/0.2821, allocations: 0.6106 MB / 497.6 MB, free: 2.395 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.2822, allocations: 11.97 kB / 497.7 MB, free: 2.383 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.277e-05/0.2822, allocations: 54.55 kB / 497.7 MB, free: 2.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.08e-05/0.2823, allocations: 31.62 kB / 497.7 MB, free: 2.289 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.2826, allocations: 283.1 kB / 498 MB, free: 1.973 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.2826, allocations: 16.44 kB / 498 MB, free: 1.957 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.243e-05/0.2827, allocations: 20 kB / 498.1 MB, free: 1.938 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005882/0.2833, allocations: 285.8 kB / 498.3 MB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2833, allocations: 0 / 498.3 MB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/0.2833, allocations: 12 kB / 498.3 MB, free: 1.633 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2833, allocations: 4 kB / 498.3 MB, free: 1.629 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007217/0.2841, allocations: 273.5 kB / 498.6 MB, free: 1.359 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.2856, allocations: 1.017 MB / 499.6 MB, free: 268 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007851/0.2864, allocations: 278.6 kB / 499.9 MB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.2865, allocations: 0 / 499.9 MB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000438/0.2869, allocations: 193.8 kB / 0.4884 GB, free: 15.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.442e-06/0.2869, allocations: 0 / 0.4884 GB, free: 15.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.002079/0.289, allocations: 0.7215 MB / 0.4891 GB, free: 15.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.2891, allocations: 110.8 kB / 0.4892 GB, free: 14.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002256/0.2893, allocations: 233.8 kB / 0.4894 GB, free: 14.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.2894, allocations: 33.7 kB / 0.4894 GB, free: 14.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.2895, allocations: 183.7 kB / 0.4896 GB, free: 14.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.276e-05/0.2895, allocations: 43.5 kB / 0.4897 GB, free: 14.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.172e-05/0.2895, allocations: 4 kB / 0.4897 GB, free: 14.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2897, allocations: 346.8 kB / 0.49 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003302/0.29, allocations: 103.9 kB / 0.4901 GB, free: 13.94 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003621/0.2904, allocations: 206 kB / 0.4903 GB, free: 13.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/0.2907, allocations: 153.3 kB / 0.4904 GB, free: 13.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2907, allocations: 0 / 0.4904 GB, free: 13.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001111/0.2918, allocations: 481.4 kB / 0.4909 GB, free: 13.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.2919, allocations: 33.7 kB / 0.4909 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.2919, allocations: 11.98 kB / 0.4909 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003283/0.2922, allocations: 80.73 kB / 0.491 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.2924, allocations: 51.97 kB / 0.4911 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/0.2948, allocations: 1.892 MB / 0.4929 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.2952, allocations: 55.88 kB / 0.493 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/0.2952, allocations: 8 kB / 0.493 GB, free: 10.78 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001301/0.2953, allocations: 149.7 kB / 0.4931 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.436e-05/0.2954, allocations: 19.72 kB / 0.4931 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.467e-05/0.2954, allocations: 25.83 kB / 0.4932 GB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2954, allocations: 0 / 0.4932 GB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.2954, allocations: 0 / 0.4932 GB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2954, allocations: 4 kB / 0.4932 GB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.2957, allocations: 297.4 kB / 0.4934 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.2957, allocations: 7.891 kB / 0.4934 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.2958, allocations: 27.97 kB / 0.4935 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002541/0.2961, allocations: 84.8 kB / 0.4936 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.2961, allocations: 0 / 0.4936 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00203/0.2982, allocations: 1.792 MB / 0.4953 GB, free: 8.188 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2982, allocations: 3.984 kB / 0.4953 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009881/0.2992, allocations: 398.3 kB / 0.4957 GB, free: 7.773 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.497e-05/0.2992, allocations: 100.8 kB / 0.4958 GB, free: 7.656 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.2993, allocations: 7.938 kB / 0.4958 GB, free: 7.648 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.2995, allocations: 51.91 kB / 0.4958 GB, free: 7.598 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.687e-05/0.2996, allocations: 19.97 kB / 0.4959 GB, free: 7.578 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.2996, allocations: 0 / 0.4959 GB, free: 7.578 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00016/0.2998, allocations: 198 kB / 0.4961 GB, free: 7.387 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2998, allocations: 0 / 0.4961 GB, free: 7.387 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003678/0.3002, allocations: 63.94 kB / 0.4961 GB, free: 7.324 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001316/0.3015, allocations: 0.9402 MB / 0.497 GB, free: 6.355 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.3027, allocations: 0.5095 MB / 0.4975 GB, free: 5.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3027, allocations: 0.5 kB / 0.4975 GB, free: 5.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004656/0.3032, allocations: 246.5 kB / 0.4978 GB, free: 5.566 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.3035, allocations: 52.11 kB / 0.4978 GB, free: 5.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005279/0.3088, allocations: 3.582 MB / 0.5013 GB, free: 1.844 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.309, allocations: 0.7521 MB / 0.502 GB, free: 1.066 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000116/0.3092, allocations: 26.28 kB / 0.5021 GB, free: 1.043 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.3093, allocations: 75.41 kB / 0.5021 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of SimCode: time 4.428e-06/0.3093, allocations: 0 / 0.5021 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1741/0.4834, allocations: 5.58 MB / 0.5076 GB, free: 96.05 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001652/0.4836, allocations: 224.7 kB / 0.5078 GB, free: 95.81 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/2.168, allocations: 1.062 kB / 0.5078 GB, free: 95.81 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat does not exist to compare? outputFormat=mat