Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.Comparator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",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.001013/0.001013, allocations: 171.9 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.395/1.395, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007994/0.0007994, allocations: 86.64 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.298e-05/3.304e-05, allocations: 4 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08564/0.08569, allocations: 47.57 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2998/0.3856, allocations: 80.03 MB / 450.2 MB, free: 13.25 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.3859, allocations: 80.52 kB / 450.2 MB, free: 13.21 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01757/0.4035, allocations: 6.116 MB / 456.4 MB, free: 7.977 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4035, allocations: 0 / 456.4 MB, free: 7.977 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.006e-05/0.4035, allocations: 4 kB / 456.4 MB, free: 7.973 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001122/0.4047, allocations: 0.6131 MB / 457 MB, free: 7.328 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.4047, allocations: 8.031 kB / 457 MB, free: 7.32 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.14e-05/0.4048, allocations: 67.03 kB / 457.1 MB, free: 7.262 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.668e-05/0.4049, allocations: 35.53 kB / 457.1 MB, free: 7.227 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004371/0.4053, allocations: 285.2 kB / 457.4 MB, free: 6.938 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.4054, allocations: 22.81 kB / 457.4 MB, free: 6.926 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.589e-05/0.4054, allocations: 27.69 kB / 457.4 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004306/0.4059, allocations: 236 kB / 457.6 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.4059, allocations: 0 / 457.6 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.4059, allocations: 10.19 kB / 457.7 MB, free: 6.738 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.4059, allocations: 4 kB / 457.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003507/0.4063, allocations: 185.4 kB / 457.8 MB, free: 6.621 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001857/0.4082, allocations: 1.127 MB / 459 MB, free: 5.605 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004097/0.4086, allocations: 119.5 kB / 459.1 MB, free: 5.512 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.577e-05/0.4087, allocations: 50.92 kB / 459.1 MB, free: 5.477 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.4087, allocations: 4.031 kB / 459.1 MB, free: 5.473 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002178/0.409, allocations: 115.2 kB / 459.3 MB, free: 5.363 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.409, allocations: 3.938 kB / 459.3 MB, free: 5.359 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003823/0.4094, allocations: 163 kB / 459.4 MB, free: 5.219 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.4094, allocations: 85.14 kB / 459.5 MB, free: 5.117 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002999/0.4097, allocations: 287.4 kB / 459.8 MB, free: 4.883 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.4098, allocations: 29.7 kB / 459.8 MB, free: 4.848 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.4099, allocations: 195.5 kB / 460 MB, free: 4.652 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.628e-05/0.4099, allocations: 39.55 kB / 460 MB, free: 4.613 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.33e-05/0.41, allocations: 4 kB / 460 MB, free: 4.609 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.4101, allocations: 338.8 kB / 460.4 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.4102, allocations: 52.23 kB / 460.4 MB, free: 4.219 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.4104, allocations: 170.1 kB / 460.6 MB, free: 4.004 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.4106, allocations: 102.5 kB / 460.7 MB, free: 3.898 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4106, allocations: 0 / 460.7 MB, free: 3.898 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004748/0.4111, allocations: 315.8 kB / 461 MB, free: 3.574 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006856/0.4117, allocations: 1.42 MB / 462.4 MB, free: 2.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.4118, allocations: 4 kB / 462.4 MB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002111/0.412, allocations: 36.73 kB / 462.5 MB, free: 1.996 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003115/0.4123, allocations: 71.89 kB / 462.5 MB, free: 1.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.4134, allocations: 1.304 MB / 463.8 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.4138, allocations: 59.66 kB / 463.9 MB, free: 436 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.4138, allocations: 8 kB / 463.9 MB, free: 428 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.4138, allocations: 4 kB / 463.9 MB, free: 424 kB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004138/0.4142, allocations: 262.2 kB / 464.2 MB, free: 152 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.4143, allocations: 4 kB / 464.2 MB, free: 148 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.882e-05/0.4143, allocations: 29.33 kB / 464.2 MB, free: 116 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002209/0.4146, allocations: 63.89 kB / 464.3 MB, free: 52 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008741/0.4155, allocations: 1.288 MB / 465.5 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002853/0.4158, allocations: 55.61 kB / 465.6 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.4158, allocations: 8 kB / 465.6 MB, free: 14.56 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (27): * Single equations (assignments): 25 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001232/0.4159, allocations: 134.9 kB / 465.7 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.416, allocations: 23.72 kB / 465.8 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.016e-05/0.416, allocations: 34 kB / 465.8 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.416, allocations: 0 / 465.8 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.416, allocations: 4 kB / 465.8 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.4161, allocations: 3.953 kB / 465.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004751/0.4165, allocations: 451.1 kB / 466.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.4166, allocations: 4.125 kB / 466.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.4167, allocations: 35.91 kB / 466.3 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.328e-05/0.4168, allocations: 24.84 kB / 466.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.4169, allocations: 8 kB / 466.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009509/0.4178, allocations: 1.3 MB / 467.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4178, allocations: 160 / 467.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.4182, allocations: 204.2 kB / 467.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.012e-05/0.4182, allocations: 108.7 kB / 467.9 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/0.4183, allocations: 4 kB / 467.9 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.4185, allocations: 35.97 kB / 468 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.554e-05/0.4186, allocations: 19.97 kB / 468 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.4186, allocations: 4 kB / 468 MB, free: 11.94 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002272/0.4189, allocations: 222.2 kB / 468.2 MB, free: 11.72 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4189, allocations: 0 / 468.2 MB, free: 11.72 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004974/0.4194, allocations: 123.8 kB / 468.3 MB, free: 11.6 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (10): * Single equations (assignments): 7 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006302/0.42, allocations: 0.8111 MB / 469.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007831/0.4208, allocations: 0.597 MB / 469.7 MB, free: 10.11 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4208, allocations: 0 / 469.7 MB, free: 10.11 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.4211, allocations: 174.8 kB / 469.9 MB, free: 9.922 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.4213, allocations: 36.75 kB / 469.9 MB, free: 9.887 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007506/0.4221, allocations: 351.1 kB / 470.3 MB, free: 9.508 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/0.4224, allocations: 0.7725 MB / 471 MB, free: 8.707 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002172/0.4227, allocations: 46.94 kB / 471.1 MB, free: 8.656 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.4228, allocations: 83.41 kB / 471.2 MB, free: 8.574 MB / 346.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4228, allocations: 0 / 471.2 MB, free: 8.574 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01816/0.441, allocations: 5.933 MB / 477.1 MB, free: 2.645 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/0.4412, allocations: 179.4 kB / 477.3 MB, free: 2.418 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.963/2.404, allocations: 0 / 477.3 MB, free: 2.418 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat