Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00104/0.00104, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009445/0.0009445, allocations: 92.44 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.905e-05/2.91e-05, allocations: 4 kB / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1051, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3342/0.4394, allocations: 82.44 MB / 484.6 MB, free: 7.059 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.4396, allocations: 76.14 kB / 484.6 MB, free: 7.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0159/0.4556, allocations: 6.293 MB / 490.9 MB, free: 1.711 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4556, allocations: 0 / 490.9 MB, free: 1.711 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.28e-05/0.4556, allocations: 4 kB / 490.9 MB, free: 1.707 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.001028/0.4567, allocations: 0.6121 MB / 491.6 MB, free: 1.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.4567, allocations: 12.03 kB / 491.6 MB, free: 1.059 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.757e-05/0.4568, allocations: 61.91 kB / 491.6 MB, free: 1.004 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.131e-05/0.4569, allocations: 31.62 kB / 491.7 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003136/0.4572, allocations: 295.7 kB / 492 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.4572, allocations: 16 kB / 492 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.01e-05/0.4573, allocations: 27.38 kB / 492 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.4577, allocations: 275.6 kB / 492.3 MB, free: 468 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.4577, allocations: 3.984 kB / 492.3 MB, free: 464 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.4577, allocations: 7.438 kB / 492.3 MB, free: 464 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.4577, allocations: 8 kB / 492.3 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.458, allocations: 183.2 kB / 492.5 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.4598, allocations: 1.203 MB / 493.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002713/0.4601, allocations: 115 kB / 493.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.321e-05/0.4602, allocations: 46.52 kB / 493.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.4602, allocations: 0 / 493.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.4604, allocations: 112.5 kB / 493.9 MB, free: 15 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.143e-06/0.4605, allocations: 0 / 493.9 MB, free: 15 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003661/0.4608, allocations: 158.8 kB / 494.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.4609, allocations: 86.39 kB / 494.2 MB, free: 14.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002963/0.4612, allocations: 291.3 kB / 494.5 MB, free: 14.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.4612, allocations: 29.2 kB / 494.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.4613, allocations: 205.6 kB / 494.7 MB, free: 14.33 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.125e-05/0.4614, allocations: 35.22 kB / 494.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.4614, allocations: 3.75 kB / 494.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4615, allocations: 341.3 kB / 495.1 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.4616, allocations: 57.92 kB / 495.1 MB, free: 13.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.4618, allocations: 158.1 kB / 495.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.462, allocations: 101.6 kB / 495.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.462, allocations: 0 / 495.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004721/0.4625, allocations: 303.7 kB / 495.7 MB, free: 13.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.4625, allocations: 41.69 kB / 495.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.4625, allocations: 4 kB / 495.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001598/0.4627, allocations: 29.16 kB / 495.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00028/0.463, allocations: 75.89 kB / 495.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000979/0.464, allocations: 1.305 MB / 497.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.4643, allocations: 59.66 kB / 497.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.4644, allocations: 16.09 kB / 497.2 MB, free: 11.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 9.014e-05/0.4644, allocations: 124.8 kB / 497.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.4645, allocations: 31.58 kB / 497.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.59e-05/0.4646, allocations: 34.72 kB / 497.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.4646, allocations: 4 kB / 497.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.4646, allocations: 5.625 kB / 497.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.4646, allocations: 0 / 497.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004249/0.465, allocations: 451.2 kB / 497.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.465, allocations: 3.984 kB / 497.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.4652, allocations: 35.97 kB / 497.9 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-05/0.4653, allocations: 28.88 kB / 497.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.4653, allocations: 0 / 497.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008518/0.4662, allocations: 1.296 MB / 499.2 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4662, allocations: 2.031 kB / 499.2 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.4665, allocations: 192.2 kB / 499.4 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.747e-05/0.4666, allocations: 117.4 kB / 499.5 MB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.579e-05/0.4666, allocations: 8.094 kB / 499.5 MB, free: 9.098 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002402/0.4669, allocations: 31.97 kB / 499.5 MB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.155e-05/0.467, allocations: 19.97 kB / 499.6 MB, free: 9.047 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.467, allocations: 7.953 kB / 499.6 MB, free: 9.039 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002252/0.4672, allocations: 222.2 kB / 499.8 MB, free: 8.824 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4672, allocations: 0 / 499.8 MB, free: 8.824 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003118/0.4676, allocations: 75.91 kB / 499.9 MB, free: 8.75 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) * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005979/0.4682, allocations: 0.8042 MB / 0.4889 GB, free: 7.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004729/0.4686, allocations: 309.4 kB / 0.4892 GB, free: 7.586 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4687, allocations: 0 / 0.4892 GB, free: 7.586 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002298/0.4689, allocations: 175.6 kB / 0.4894 GB, free: 7.402 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.4692, allocations: 52.81 kB / 0.4894 GB, free: 7.355 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007407/0.4699, allocations: 342.4 kB / 0.4898 GB, free: 6.984 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002901/0.4702, allocations: 0.7638 MB / 0.4905 GB, free: 6.195 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000132/0.4704, allocations: 30.97 kB / 0.4905 GB, free: 6.164 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.4705, allocations: 91.41 kB / 0.4906 GB, free: 6.074 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4705, allocations: 4 kB / 0.4906 GB, free: 6.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01677/0.4873, allocations: 5.327 MB / 0.4958 GB, free: 1 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.4875, allocations: 183.8 kB / 0.496 GB, free: 0.7734 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.332, allocations: 0 / 0.496 GB, free: 0.7734 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat