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.001071/0.001071, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.3 MB / 214.4 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000827/0.0008273, allocations: 87.62 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.988e-05/1.981e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08354/0.08358, allocations: 47.59 MB / 363.2 MB, free: 6.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3019/0.3855, allocations: 78.69 MB / 441.9 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/0.3857, allocations: 77.64 kB / 441.9 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01589/0.4017, allocations: 5.685 MB / 447.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4017, allocations: 0 / 447.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.4017, allocations: 7.984 kB / 447.6 MB, free: 11.83 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.0009553/0.4027, allocations: 0.568 MB / 448.2 MB, free: 11.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.4027, allocations: 12.03 kB / 448.2 MB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.706e-05/0.4028, allocations: 31.56 kB / 448.3 MB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.4032, allocations: 272 kB / 448.5 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.4032, allocations: 7.953 kB / 448.5 MB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.4032, allocations: 16 kB / 448.5 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002772/0.4035, allocations: 142 kB / 448.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/0.4038, allocations: 165.1 kB / 448.8 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.4038, allocations: 0 / 448.8 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.4039, allocations: 4 kB / 448.8 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.4039, allocations: 11.92 kB / 448.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.4055, allocations: 0.9008 MB / 449.8 MB, free: 9.836 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.4058, allocations: 128.4 kB / 449.9 MB, free: 9.746 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.431e-05/0.4059, allocations: 64.8 kB / 449.9 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.4059, allocations: 0 / 449.9 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.4062, allocations: 127.2 kB / 450.1 MB, free: 9.578 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.263e-06/0.4062, allocations: 224 / 450.1 MB, free: 9.578 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006044/0.4068, allocations: 228.3 kB / 450.3 MB, free: 9.379 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.4068, allocations: 106.8 kB / 450.4 MB, free: 9.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002195/0.4071, allocations: 215.8 kB / 450.6 MB, free: 9.074 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.4071, allocations: 29.7 kB / 450.6 MB, free: 9.039 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.4072, allocations: 183.2 kB / 450.8 MB, free: 8.887 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.644e-05/0.4073, allocations: 37.58 kB / 450.9 MB, free: 8.855 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.16e-05/0.4073, allocations: 0 / 450.9 MB, free: 8.855 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.4074, allocations: 332.8 kB / 451.2 MB, free: 8.531 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.807e-05/0.4075, allocations: 47.62 kB / 451.2 MB, free: 8.504 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.4077, allocations: 125.1 kB / 451.3 MB, free: 8.375 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001044/0.4078, allocations: 59.97 kB / 451.4 MB, free: 8.336 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.4078, allocations: 4 kB / 451.4 MB, free: 8.332 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006299/0.4084, allocations: 292 kB / 451.7 MB, free: 8.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004012/0.4089, allocations: 0.8167 MB / 452.5 MB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4089, allocations: 0 / 452.5 MB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001985/0.4091, allocations: 43.22 kB / 452.6 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.4093, allocations: 59.77 kB / 452.6 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004198/0.4097, allocations: 0.5788 MB / 453.2 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003339/0.4101, allocations: 59.8 kB / 453.2 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.4101, allocations: 4 kB / 453.3 MB, free: 6.488 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.063e-06/0.4101, allocations: 4 kB / 453.3 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003024/0.4104, allocations: 174.3 kB / 453.4 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-06/0.4104, allocations: 0 / 453.4 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.846e-05/0.4105, allocations: 28.84 kB / 453.5 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.4107, allocations: 50.97 kB / 453.5 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008693/0.4116, allocations: 1.262 MB / 454.8 MB, free: 4.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002638/0.4119, allocations: 39.81 kB / 454.8 MB, free: 4.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.4119, allocations: 8 kB / 454.8 MB, free: 4.906 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real 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.0001382/0.412, allocations: 128.3 kB / 454.9 MB, free: 4.777 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004905/0.4125, allocations: 215.4 kB / 455.1 MB, free: 4.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.453e-05/0.4126, allocations: 35.66 kB / 455.2 MB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.498e-05/0.4127, allocations: 21.03 kB / 455.2 MB, free: 4.539 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.4127, allocations: 0 / 455.2 MB, free: 4.539 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.4127, allocations: 3.938 kB / 455.2 MB, free: 4.535 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.4127, allocations: 7.984 kB / 455.2 MB, free: 4.527 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002349/0.4129, allocations: 260.6 kB / 455.5 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4129, allocations: 0 / 455.5 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.4131, allocations: 31.97 kB / 455.5 MB, free: 4.246 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/0.4132, allocations: 43.03 kB / 455.5 MB, free: 4.211 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.4132, allocations: 3.953 kB / 455.5 MB, free: 4.207 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.4146, allocations: 1.522 MB / 457.1 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4146, allocations: 0 / 457.1 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005275/0.4152, allocations: 253.3 kB / 457.3 MB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.959e-05/0.4153, allocations: 104.2 kB / 457.4 MB, free: 2.332 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.4153, allocations: 4.125 kB / 457.4 MB, free: 2.328 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.4156, allocations: 39.97 kB / 457.5 MB, free: 2.289 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.132e-05/0.4157, allocations: 19.47 kB / 457.5 MB, free: 2.273 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.4157, allocations: 7.984 kB / 457.5 MB, free: 2.266 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001421/0.4158, allocations: 167.3 kB / 457.7 MB, free: 2.137 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4158, allocations: 0 / 457.7 MB, free: 2.137 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004836/0.4163, allocations: 119.7 kB / 457.8 MB, free: 2.02 MB / 330.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.0008853/0.4172, allocations: 0.8033 MB / 458.6 MB, free: 1.223 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006751/0.4179, allocations: 442.3 kB / 459 MB, free: 0.832 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.4179, allocations: 8.938 kB / 459 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002272/0.4182, allocations: 185.5 kB / 459.2 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.4184, allocations: 31.16 kB / 459.2 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002801/0.4212, allocations: 0.8166 MB / 460 MB, free: 15.81 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.4216, allocations: 0.7528 MB / 460.8 MB, free: 15.04 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001787/0.4217, allocations: 38.05 kB / 460.8 MB, free: 15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.415e-05/0.4218, allocations: 65.8 kB / 460.9 MB, free: 14.98 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4218, allocations: 0 / 460.9 MB, free: 14.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.4469, allocations: 5.135 MB / 466 MB, free: 9.84 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002746/0.4472, allocations: 154.3 kB / 466.2 MB, free: 9.652 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/2.317, allocations: 2.031 kB / 466.2 MB, free: 9.652 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