Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 202.2 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.228/1.228, allocations: 227.2 MB / 245 MB, free: 5.781 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008177/0.0008177, allocations: 111.6 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002084/0.0002084, allocations: 11.98 kB / 358 MB, free: 9.195 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1783, allocations: 51.47 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08486/0.2632, allocations: 81.56 MB / 491.1 MB, free: 9.023 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.2634, allocations: 81.39 kB / 491.2 MB, free: 8.945 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01584/0.2793, allocations: 5.862 MB / 497 MB, free: 3.066 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2793, allocations: 0 / 497 MB, free: 3.066 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.019e-05/0.2794, allocations: 8 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.001007/0.2804, allocations: 0.6145 MB / 497.6 MB, free: 2.391 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.2804, allocations: 8.031 kB / 497.6 MB, free: 2.383 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.108e-05/0.2805, allocations: 54.55 kB / 497.7 MB, free: 2.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.229e-05/0.2806, allocations: 31.61 kB / 497.7 MB, free: 2.289 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.2809, allocations: 283.1 kB / 498 MB, free: 1.973 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.2809, allocations: 16.44 kB / 498 MB, free: 1.957 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.182e-05/0.281, allocations: 19.98 kB / 498 MB, free: 1.938 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005998/0.2816, allocations: 285.8 kB / 498.3 MB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.2816, allocations: 4 kB / 498.3 MB, free: 1.641 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.2816, allocations: 12 kB / 498.3 MB, free: 1.629 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.2817, allocations: 4 kB / 498.3 MB, free: 1.625 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007112/0.2824, allocations: 277.5 kB / 498.6 MB, free: 1.352 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.284, allocations: 1.021 MB / 499.6 MB, free: 256 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000781/0.2848, allocations: 278.6 kB / 499.9 MB, free: 15.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.2848, allocations: 4 kB / 499.9 MB, free: 15.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004565/0.2852, allocations: 197.4 kB / 0.4884 GB, free: 15.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.703e-06/0.2853, allocations: 0 / 0.4884 GB, free: 15.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.00214/0.2874, allocations: 0.7215 MB / 0.4891 GB, free: 15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.2875, allocations: 106.8 kB / 0.4892 GB, free: 14.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.2877, allocations: 229.8 kB / 0.4894 GB, free: 14.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.2878, allocations: 29.7 kB / 0.4894 GB, free: 14.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.87e-05/0.2879, allocations: 179.8 kB / 0.4896 GB, free: 14.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.192e-05/0.2879, allocations: 39.39 kB / 0.4896 GB, free: 14.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.231e-05/0.2879, allocations: 8 kB / 0.4896 GB, free: 14.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.885e-05/0.288, allocations: 334.8 kB / 0.49 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003305/0.2884, allocations: 112.1 kB / 0.4901 GB, free: 13.94 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000369/0.2887, allocations: 189.2 kB / 0.4903 GB, free: 13.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003472/0.2891, allocations: 142.8 kB / 0.4904 GB, free: 13.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2891, allocations: 0 / 0.4904 GB, free: 13.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001163/0.2903, allocations: 474.5 kB / 0.4908 GB, free: 13.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.113e-05/0.2903, allocations: 29.7 kB / 0.4909 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.2903, allocations: 7.953 kB / 0.4909 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003334/0.2907, allocations: 84.83 kB / 0.491 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000198/0.2909, allocations: 39.97 kB / 0.491 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002353/0.2932, allocations: 1.834 MB / 0.4928 GB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003351/0.2936, allocations: 51.81 kB / 0.4928 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.2936, allocations: 12.06 kB / 0.4929 GB, free: 10.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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.0001323/0.2938, allocations: 141.8 kB / 0.493 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.568e-05/0.2938, allocations: 23.72 kB / 0.493 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.754e-05/0.2939, allocations: 21.97 kB / 0.493 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.2939, allocations: 11.92 kB / 0.493 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.2939, allocations: 4 kB / 0.493 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2939, allocations: 0 / 0.493 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.2941, allocations: 289.4 kB / 0.4933 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2941, allocations: 3.953 kB / 0.4933 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.2943, allocations: 31.97 kB / 0.4934 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002505/0.2946, allocations: 80.8 kB / 0.4934 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.2946, allocations: 4 kB / 0.4934 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001967/0.2966, allocations: 1.699 MB / 0.4951 GB, free: 8.402 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2966, allocations: 0 / 0.4951 GB, free: 8.402 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.2976, allocations: 393.5 kB / 0.4955 GB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.186e-05/0.2977, allocations: 104.8 kB / 0.4956 GB, free: 7.875 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.2978, allocations: 4 kB / 0.4956 GB, free: 7.871 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002474/0.298, allocations: 43.95 kB / 0.4956 GB, free: 7.828 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.746e-05/0.2981, allocations: 23.97 kB / 0.4956 GB, free: 7.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.2981, allocations: 4 kB / 0.4956 GB, free: 7.801 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001707/0.2983, allocations: 193.9 kB / 0.4958 GB, free: 7.613 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2983, allocations: 0 / 0.4958 GB, free: 7.613 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003463/0.2986, allocations: 75.78 kB / 0.4959 GB, free: 7.539 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.001265/0.2999, allocations: 0.9364 MB / 0.4968 GB, free: 6.574 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008948/0.3008, allocations: 437.9 kB / 0.4972 GB, free: 6.121 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3008, allocations: 0 / 0.4972 GB, free: 6.121 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004459/0.3013, allocations: 254.8 kB / 0.4975 GB, free: 5.859 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.3016, allocations: 44.39 kB / 0.4975 GB, free: 5.816 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003232/0.3048, allocations: 2.721 MB / 0.5002 GB, free: 3.008 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.3051, allocations: 0.7521 MB / 0.5009 GB, free: 2.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.3052, allocations: 26.28 kB / 0.5009 GB, free: 2.203 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.3053, allocations: 71.42 kB / 0.501 GB, free: 2.133 MB / 378.7 MB Notification: Performance of SimCode: time 1.724e-06/0.3053, allocations: 0 / 0.501 GB, free: 2.133 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1674/0.4727, allocations: 5.596 MB / 0.5065 GB, free: 95.66 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001407/0.4729, allocations: 221 kB / 0.5067 GB, free: 95.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/2.134, allocations: 0 / 0.5067 GB, free: 95.43 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat