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.001384/0.001384, allocations: 180.7 kB / 8.699 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.501/1.501, allocations: 205.3 MB / 214.4 MB, free: 1.734 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.0008462/0.0008462, allocations: 82.23 kB / 262.5 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.457e-05/2.459e-05, allocations: 4.219 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08623/0.08627, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3106/0.3969, allocations: 79.6 MB / 442.8 MB, free: 44 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.3972, allocations: 80.77 kB / 442.9 MB, free: 0 / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01697/0.4142, allocations: 6.061 MB / 448.9 MB, free: 10.9 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4142, allocations: 1.125 kB / 448.9 MB, free: 10.9 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.4143, allocations: 8 kB / 448.9 MB, free: 10.89 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.001105/0.4154, allocations: 0.5961 MB / 449.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.4154, allocations: 11.97 kB / 449.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.779e-05/0.4155, allocations: 39.53 kB / 449.6 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/0.4159, allocations: 285.2 kB / 449.9 MB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.4159, allocations: 15.98 kB / 449.9 MB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.812e-05/0.416, allocations: 16 kB / 449.9 MB, free: 9.895 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003418/0.4163, allocations: 175.7 kB / 450.1 MB, free: 9.797 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003455/0.4167, allocations: 199.8 kB / 450.3 MB, free: 9.645 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.4167, allocations: 0 / 450.3 MB, free: 9.645 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.4167, allocations: 3.984 kB / 450.3 MB, free: 9.641 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.4168, allocations: 11.94 kB / 450.3 MB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.4185, allocations: 1.06 MB / 451.3 MB, free: 8.668 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002921/0.4188, allocations: 123.1 kB / 451.5 MB, free: 8.574 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.575e-05/0.4189, allocations: 46.92 kB / 451.5 MB, free: 8.543 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.419, allocations: 4 kB / 451.5 MB, free: 8.539 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001863/0.4191, allocations: 111.1 kB / 451.6 MB, free: 8.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.4192, allocations: 0 / 451.6 MB, free: 8.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003307/0.4195, allocations: 141.8 kB / 451.7 MB, free: 8.309 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.4196, allocations: 85.14 kB / 451.8 MB, free: 8.207 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002378/0.4198, allocations: 240.4 kB / 452.1 MB, free: 8.012 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.4198, allocations: 25.7 kB / 452.1 MB, free: 7.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.42, allocations: 214.7 kB / 452.3 MB, free: 7.801 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.991e-05/0.42, allocations: 31.23 kB / 452.3 MB, free: 7.773 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.299e-05/0.42, allocations: 0 / 452.3 MB, free: 7.773 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.4202, allocations: 333.7 kB / 452.7 MB, free: 7.449 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.786e-05/0.4202, allocations: 48.84 kB / 452.7 MB, free: 7.422 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.4204, allocations: 159 kB / 452.9 MB, free: 7.246 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.4205, allocations: 71.97 kB / 452.9 MB, free: 7.195 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.4205, allocations: 4 kB / 452.9 MB, free: 7.191 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004522/0.421, allocations: 240.8 kB / 453.2 MB, free: 6.992 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005427/0.4215, allocations: 1.424 MB / 454.6 MB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.4216, allocations: 4 kB / 454.6 MB, free: 5.477 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001483/0.4217, allocations: 36.27 kB / 454.6 MB, free: 5.441 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.422, allocations: 70.58 kB / 454.7 MB, free: 5.375 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/0.4232, allocations: 1.247 MB / 455.9 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000455/0.4236, allocations: 47.67 kB / 456 MB, free: 4.016 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.4237, allocations: 19.62 kB / 456 MB, free: 4 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.784e-06/0.4237, allocations: 4 kB / 456 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004921/0.4242, allocations: 200.4 kB / 456.2 MB, free: 3.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.4242, allocations: 4 kB / 456.2 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.162e-05/0.4243, allocations: 20.95 kB / 456.2 MB, free: 3.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/0.4245, allocations: 67.89 kB / 456.3 MB, free: 3.754 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008166/0.4253, allocations: 1.258 MB / 457.6 MB, free: 2.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000255/0.4256, allocations: 35.81 kB / 457.6 MB, free: 2.402 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.4256, allocations: 16 kB / 457.6 MB, free: 2.387 MB / 330.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.0001005/0.4258, allocations: 117 kB / 457.7 MB, free: 2.27 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003083/0.4261, allocations: 153.8 kB / 457.9 MB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.98e-05/0.4261, allocations: 19.72 kB / 457.9 MB, free: 2.113 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.258e-05/0.4262, allocations: 27.2 kB / 457.9 MB, free: 2.098 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.4262, allocations: 0 / 457.9 MB, free: 2.098 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.4262, allocations: 4 kB / 457.9 MB, free: 2.094 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.4263, allocations: 3.953 kB / 457.9 MB, free: 2.09 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003899/0.4267, allocations: 412.3 kB / 458.3 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4267, allocations: 4.062 kB / 458.3 MB, free: 1.695 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.4269, allocations: 35.91 kB / 458.4 MB, free: 1.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.93e-05/0.4269, allocations: 27.72 kB / 458.4 MB, free: 1.637 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.427, allocations: 4 kB / 458.4 MB, free: 1.633 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009061/0.4279, allocations: 1.239 MB / 459.6 MB, free: 332 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.4279, allocations: 8.109 kB / 459.7 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002628/0.4282, allocations: 180.4 kB / 459.8 MB, free: 140 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.976e-05/0.4283, allocations: 104.1 kB / 459.9 MB, free: 20 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.395e-05/0.4283, allocations: 0 / 459.9 MB, free: 20 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.4286, allocations: 36.03 kB / 460 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.097e-05/0.4286, allocations: 19.78 kB / 460 MB, free: 15.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.4287, allocations: 4 kB / 460 MB, free: 15.97 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001645/0.4288, allocations: 185.4 kB / 460.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4288, allocations: 0 / 460.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005974/0.4294, allocations: 127.5 kB / 460.3 MB, free: 15.7 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.000603/0.43, allocations: 0.7987 MB / 461.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007323/0.4308, allocations: 0.5563 MB / 461.6 MB, free: 14.37 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4308, allocations: 0 / 461.6 MB, free: 14.37 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.431, allocations: 168 kB / 461.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.4313, allocations: 47.11 kB / 461.9 MB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00069/0.432, allocations: 346 kB / 462.2 MB, free: 13.83 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.4323, allocations: 0.7606 MB / 463 MB, free: 13.05 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002028/0.4326, allocations: 42.05 kB / 463 MB, free: 13.01 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.4327, allocations: 81.66 kB / 463.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4327, allocations: 0 / 463.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02336/0.4561, allocations: 4.937 MB / 468 MB, free: 8.047 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001645/0.4563, allocations: 150.3 kB / 468.2 MB, free: 7.848 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/2.251, allocations: 0 / 468.2 MB, free: 7.848 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