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.001362/0.001362, allocations: 181.3 kB / 17.01 MB, free: 5.125 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.371/1.371, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008203/0.0008203, allocations: 94.59 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002667, allocations: 12 kB / 328.4 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2752, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1033/0.3785, allocations: 80.14 MB / 456.1 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.3788, allocations: 79.95 kB / 456.1 MB, free: 444 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01677/0.3956, allocations: 6.121 MB / 462.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3956, allocations: 0 / 462.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.683e-05/0.3956, allocations: 4 kB / 462.3 MB, free: 10.29 MB / 346.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.00118/0.3968, allocations: 0.6502 MB / 462.9 MB, free: 9.578 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.3969, allocations: 15.97 kB / 462.9 MB, free: 9.562 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.688e-05/0.397, allocations: 66.47 kB / 463 MB, free: 9.488 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.08e-05/0.3971, allocations: 31.62 kB / 463 MB, free: 9.457 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.3974, allocations: 287.4 kB / 463.3 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.3975, allocations: 16.56 kB / 463.3 MB, free: 9.121 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.939e-05/0.3975, allocations: 24 kB / 463.3 MB, free: 9.098 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000651/0.3982, allocations: 304.7 kB / 463.6 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.3982, allocations: 0 / 463.6 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.3982, allocations: 8 kB / 463.7 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.3982, allocations: 12 kB / 463.7 MB, free: 8.773 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007867/0.399, allocations: 314 kB / 464 MB, free: 8.465 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001781/0.4008, allocations: 1.142 MB / 465.1 MB, free: 7.234 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007386/0.4016, allocations: 238.6 kB / 465.3 MB, free: 6.992 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.4016, allocations: 192 / 465.3 MB, free: 6.992 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004194/0.402, allocations: 169 kB / 465.5 MB, free: 6.809 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.402, allocations: 0 / 465.5 MB, free: 6.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.001124/0.4032, allocations: 451.1 kB / 466 MB, free: 6.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.4032, allocations: 81.11 kB / 466 MB, free: 6.242 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003051/0.4036, allocations: 287.6 kB / 466.3 MB, free: 5.961 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.4036, allocations: 25.7 kB / 466.3 MB, free: 5.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.4037, allocations: 207.5 kB / 466.5 MB, free: 5.723 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.132e-05/0.4038, allocations: 31.55 kB / 466.6 MB, free: 5.691 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.469e-05/0.4038, allocations: 12 kB / 466.6 MB, free: 5.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.4039, allocations: 334.8 kB / 466.9 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003066/0.4043, allocations: 112.2 kB / 467 MB, free: 5.234 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003531/0.4046, allocations: 218 kB / 467.2 MB, free: 4.973 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003312/0.405, allocations: 155.8 kB / 467.4 MB, free: 4.816 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.405, allocations: 0 / 467.4 MB, free: 4.816 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008378/0.4058, allocations: 407.8 kB / 467.8 MB, free: 4.402 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005538/0.4064, allocations: 1.428 MB / 469.2 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.4064, allocations: 4 kB / 469.2 MB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001655/0.4066, allocations: 33.2 kB / 469.2 MB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.4068, allocations: 71.84 kB / 469.3 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/0.4079, allocations: 1.315 MB / 470.6 MB, free: 1.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.4082, allocations: 59.72 kB / 470.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.4083, allocations: 15.94 kB / 470.7 MB, free: 1.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/0.4083, allocations: 6.031 kB / 470.7 MB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007353/0.409, allocations: 350.4 kB / 471.1 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.409, allocations: 0 / 471.1 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.57e-05/0.4091, allocations: 28.84 kB / 471.1 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.4093, allocations: 67.97 kB / 471.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009014/0.4102, allocations: 1.299 MB / 472.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002746/0.4105, allocations: 51.67 kB / 472.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.4106, allocations: 12 kB / 472.5 MB, free: 15.28 MB / 362.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 () * Number of clocked 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.0002093/0.4108, allocations: 224.6 kB / 472.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.167e-05/0.4108, allocations: 27.72 kB / 472.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.898e-05/0.4109, allocations: 29.89 kB / 472.8 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.4109, allocations: 0 / 472.8 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.716e-06/0.4109, allocations: 0 / 472.8 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.4109, allocations: 3.953 kB / 472.8 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004588/0.4114, allocations: 447.2 kB / 473.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.4114, allocations: 4 kB / 473.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.4116, allocations: 40 kB / 473.3 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.148e-05/0.4117, allocations: 28.83 kB / 473.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.4117, allocations: 0 / 473.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009794/0.4127, allocations: 1.307 MB / 474.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4127, allocations: 0 / 474.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006677/0.4134, allocations: 312.2 kB / 474.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.345e-05/0.4135, allocations: 108.8 kB / 475 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.4135, allocations: 12 kB / 475 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.4137, allocations: 27.97 kB / 475.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.265e-05/0.4138, allocations: 19.97 kB / 475.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.4138, allocations: 0 / 475.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002131/0.414, allocations: 231.1 kB / 475.3 MB, free: 12.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.414, allocations: 0 / 475.3 MB, free: 12.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004885/0.4145, allocations: 127.8 kB / 475.4 MB, free: 12.11 MB / 362.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) * Number of clocked states: 0 () * 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.0009569/0.4155, allocations: 0.922 MB / 476.3 MB, free: 11.15 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001322/0.4168, allocations: 0.735 MB / 477.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4169, allocations: 0 / 477.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004091/0.4173, allocations: 235.3 kB / 477.3 MB, free: 10.12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.4175, allocations: 36.64 kB / 477.3 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003426/0.421, allocations: 4.033 MB / 481.4 MB, free: 5.934 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.4213, allocations: 0.7638 MB / 482.1 MB, free: 5.145 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001699/0.4215, allocations: 46.94 kB / 482.2 MB, free: 5.102 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.4216, allocations: 87.41 kB / 482.3 MB, free: 5.016 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4216, allocations: 0 / 482.3 MB, free: 5.016 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.4395, allocations: 5.788 MB / 488.1 MB, free: 15.26 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002466/0.4398, allocations: 202.3 kB / 488.3 MB, free: 15.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.929/2.369, allocations: 4 kB / 488.3 MB, free: 15.02 MB / 378.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