Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001028/0.001029, allocations: 172.4 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000823/0.0008231, allocations: 78.67 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.867e-05/2.869e-05, allocations: 4 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08375/0.0838, allocations: 47.57 MB / 370.1 MB, free: 1.594 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2778/0.3616, allocations: 79.11 MB / 449.2 MB, free: 14.19 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.3619, allocations: 77.89 kB / 449.3 MB, free: 14.15 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01609/0.378, allocations: 5.733 MB / 455.1 MB, free: 9.227 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3781, allocations: 4 kB / 455.1 MB, free: 9.223 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.749e-05/0.3781, allocations: 8 kB / 455.1 MB, free: 9.215 MB / 330.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.0009769/0.3791, allocations: 0.5684 MB / 455.6 MB, free: 8.613 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.3791, allocations: 8.031 kB / 455.6 MB, free: 8.605 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.019e-05/0.3792, allocations: 56.05 kB / 455.7 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.699e-05/0.3793, allocations: 31.62 kB / 455.7 MB, free: 8.523 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.3797, allocations: 273.3 kB / 456 MB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.3797, allocations: 22.56 kB / 456 MB, free: 8.227 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.901e-05/0.3798, allocations: 15.81 kB / 456 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000376/0.3801, allocations: 196.7 kB / 456.2 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.3802, allocations: 0 / 456.2 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.742e-05/0.3802, allocations: 11 kB / 456.2 MB, free: 8.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.3802, allocations: 8 kB / 456.2 MB, free: 8.062 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002624/0.3805, allocations: 151.4 kB / 456.4 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.382, allocations: 0.9448 MB / 457.3 MB, free: 7.105 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002796/0.3823, allocations: 138.3 kB / 457.5 MB, free: 7.008 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.496e-05/0.3824, allocations: 58.91 kB / 457.5 MB, free: 6.969 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.3825, allocations: 4 kB / 457.5 MB, free: 6.965 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.3827, allocations: 136.9 kB / 457.7 MB, free: 6.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.906e-06/0.3827, allocations: 0 / 457.7 MB, free: 6.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006011/0.3833, allocations: 237.9 kB / 457.9 MB, free: 6.629 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.3834, allocations: 106.8 kB / 458 MB, free: 6.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002305/0.3836, allocations: 238.2 kB / 458.2 MB, free: 6.301 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.3837, allocations: 29.7 kB / 458.3 MB, free: 6.266 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.777e-05/0.3838, allocations: 175.4 kB / 458.4 MB, free: 6.121 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.305e-05/0.3838, allocations: 42.77 kB / 458.5 MB, free: 6.086 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/0.3838, allocations: 7.75 kB / 458.5 MB, free: 6.082 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3839, allocations: 337.1 kB / 458.8 MB, free: 5.754 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.498e-05/0.384, allocations: 54 kB / 458.9 MB, free: 5.723 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.3842, allocations: 125.1 kB / 459 MB, free: 5.594 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001297/0.3843, allocations: 92.89 kB / 459.1 MB, free: 5.516 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3843, allocations: 0 / 459.1 MB, free: 5.516 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006757/0.385, allocations: 343.8 kB / 459.4 MB, free: 5.176 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003226/0.3854, allocations: 0.815 MB / 460.2 MB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3854, allocations: 7.938 kB / 460.2 MB, free: 4.285 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002393/0.3856, allocations: 52.83 kB / 460.3 MB, free: 4.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002787/0.3859, allocations: 43.91 kB / 460.3 MB, free: 4.188 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007984/0.3867, allocations: 0.6618 MB / 461 MB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003609/0.3871, allocations: 59.66 kB / 461 MB, free: 3.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.3871, allocations: 8 kB / 461.1 MB, free: 3.434 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.3871, allocations: 4.062 kB / 461.1 MB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003757/0.3875, allocations: 230.2 kB / 461.3 MB, free: 3.195 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.3875, allocations: 4 kB / 461.3 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.396e-05/0.3876, allocations: 24.84 kB / 461.3 MB, free: 3.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.3878, allocations: 52.16 kB / 461.4 MB, free: 3.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008933/0.3887, allocations: 1.311 MB / 462.7 MB, free: 1.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.389, allocations: 51.88 kB / 462.7 MB, free: 1.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.3891, allocations: 7.938 kB / 462.7 MB, free: 1.605 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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.0001009/0.3892, allocations: 121.2 kB / 462.9 MB, free: 1.48 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.775e-05/0.3892, allocations: 27.66 kB / 462.9 MB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.802e-05/0.3893, allocations: 29.95 kB / 462.9 MB, free: 1.418 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3893, allocations: 4 kB / 462.9 MB, free: 1.414 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-06/0.3893, allocations: 0 / 462.9 MB, free: 1.414 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3893, allocations: 3.953 kB / 462.9 MB, free: 1.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000278/0.3896, allocations: 289.4 kB / 463.2 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3896, allocations: 0 / 463.2 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.3898, allocations: 27.97 kB / 463.2 MB, free: 1.051 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001362/0.3899, allocations: 48.83 kB / 463.3 MB, free: 1 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.3899, allocations: 4 kB / 463.3 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001494/0.3914, allocations: 1.584 MB / 464.9 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3915, allocations: 0 / 464.9 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005555/0.392, allocations: 269.6 kB / 465.1 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.945e-05/0.3921, allocations: 100.8 kB / 465.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.3921, allocations: 8 kB / 465.2 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.3924, allocations: 43.95 kB / 465.3 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.303e-05/0.3925, allocations: 19.97 kB / 465.3 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.3925, allocations: 4 kB / 465.3 MB, free: 14.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001761/0.3927, allocations: 191.1 kB / 465.5 MB, free: 14.62 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3927, allocations: 0 / 465.5 MB, free: 14.62 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004523/0.3932, allocations: 115.8 kB / 465.6 MB, free: 14.51 MB / 346.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) * 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.0008763/0.394, allocations: 0.8042 MB / 466.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.3951, allocations: 0.5383 MB / 466.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3951, allocations: 7.938 kB / 466.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002284/0.3954, allocations: 191.5 kB / 467.1 MB, free: 12.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.3956, allocations: 54 kB / 467.2 MB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002989/0.3986, allocations: 0.838 MB / 468 MB, free: 11.96 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.399, allocations: 0.7609 MB / 468.8 MB, free: 11.17 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000184/0.3991, allocations: 38.05 kB / 468.8 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.3993, allocations: 75.41 kB / 468.9 MB, free: 11.06 MB / 346.7 MB Notification: Performance of SimCode: time 4.21e-07/0.3993, allocations: 0 / 468.9 MB, free: 11.06 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01799/0.4173, allocations: 5.912 MB / 474.8 MB, free: 5.141 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.4175, allocations: 204.1 kB / 475 MB, free: 4.914 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.716/2.133, allocations: 0 / 475 MB, free: 4.914 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat does not exist to compare? outputFormat=mat