Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002557/0.002557, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.141/2.141, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001071/0.00107, allocations: 89.28 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.64e-05/2.65e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3596, allocations: 47.57 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.13/0.4897, allocations: 79.39 MB / 441.8 MB, free: 6.812 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003201/0.49, allocations: 79.95 kB / 441.9 MB, free: 6.734 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02919/0.5193, allocations: 6.047 MB / 448 MB, free: 0.7188 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.5193, allocations: 8 kB / 448 MB, free: 0.7109 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.629e-05/0.5194, allocations: 4 kB / 448 MB, free: 0.707 MB / 331.1 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.001774/0.5212, allocations: 0.6053 MB / 448.6 MB, free: 52 kB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.011e-05/0.5212, allocations: 17.14 kB / 448.6 MB, free: 36 kB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.5214, allocations: 35.53 kB / 448.6 MB, free: 0 / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006019/0.522, allocations: 283.4 kB / 448.9 MB, free: 15.68 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.5221, allocations: 12 kB / 448.9 MB, free: 15.67 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.234e-05/0.5221, allocations: 16 kB / 448.9 MB, free: 15.66 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000573/0.5227, allocations: 179.2 kB / 449.1 MB, free: 15.48 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005616/0.5233, allocations: 199.8 kB / 449.3 MB, free: 15.28 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.5233, allocations: 0 / 449.3 MB, free: 15.28 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.977e-05/0.5234, allocations: 3.984 kB / 449.3 MB, free: 15.28 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.5234, allocations: 8 kB / 449.3 MB, free: 15.27 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002913/0.5263, allocations: 1.065 MB / 450.4 MB, free: 14.12 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000493/0.5269, allocations: 114.7 kB / 450.5 MB, free: 14 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.527, allocations: 47.02 kB / 450.5 MB, free: 13.96 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.5271, allocations: 7.938 kB / 450.5 MB, free: 13.95 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000285/0.5274, allocations: 113 kB / 450.6 MB, free: 13.82 MB / 347.1 MB Notification: Performance of pre-optimization done (n=11): time 2.795e-06/0.5274, allocations: 0 / 450.6 MB, free: 13.82 MB / 347.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005326/0.5279, allocations: 142.1 kB / 450.8 MB, free: 13.67 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.528, allocations: 85.14 kB / 450.9 MB, free: 13.57 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003895/0.5284, allocations: 234.3 kB / 451.1 MB, free: 13.34 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 4.199e-05/0.5285, allocations: 25.7 kB / 451.1 MB, free: 13.3 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.5287, allocations: 270 kB / 451.4 MB, free: 13.04 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.242e-05/0.5287, allocations: 35.55 kB / 451.4 MB, free: 13 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-05/0.5288, allocations: 3.938 kB / 451.4 MB, free: 13 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.5289, allocations: 322.8 kB / 451.7 MB, free: 12.68 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.5291, allocations: 48.23 kB / 451.8 MB, free: 12.63 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.5294, allocations: 154 kB / 451.9 MB, free: 12.43 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001976/0.5296, allocations: 75.44 kB / 452 MB, free: 12.36 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.5296, allocations: 4 kB / 452 MB, free: 12.36 MB / 347.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007051/0.5303, allocations: 226.1 kB / 452.2 MB, free: 12.12 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007044/0.531, allocations: 1.428 MB / 453.7 MB, free: 10.58 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.5311, allocations: 4.5 kB / 453.7 MB, free: 10.58 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000276/0.5313, allocations: 28.84 kB / 453.7 MB, free: 10.55 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005596/0.5319, allocations: 67.89 kB / 453.8 MB, free: 10.48 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.5334, allocations: 1.263 MB / 455 MB, free: 9.105 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009242/0.5344, allocations: 43.77 kB / 455.1 MB, free: 9.062 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.199e-05/0.5345, allocations: 16 kB / 455.1 MB, free: 9.047 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.5346, allocations: 4 kB / 455.1 MB, free: 9.043 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001004/0.5356, allocations: 201.5 kB / 455.3 MB, free: 8.844 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.5356, allocations: 4 kB / 455.3 MB, free: 8.84 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001755/0.5358, allocations: 24.84 kB / 455.3 MB, free: 8.812 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000514/0.5364, allocations: 64.36 kB / 455.4 MB, free: 8.75 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.5376, allocations: 1.252 MB / 456.6 MB, free: 7.391 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004617/0.5381, allocations: 31.83 kB / 456.7 MB, free: 7.359 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.5382, allocations: 12 kB / 456.7 MB, free: 7.348 MB / 347.1 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.0001677/0.5384, allocations: 124.8 kB / 456.8 MB, free: 7.219 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004345/0.5388, allocations: 145.9 kB / 456.9 MB, free: 7.07 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.762e-05/0.5389, allocations: 23.72 kB / 457 MB, free: 7.047 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.53e-05/0.539, allocations: 25.83 kB / 457 MB, free: 7.023 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.539, allocations: 4 kB / 457 MB, free: 7.02 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.539, allocations: 0 / 457 MB, free: 7.02 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.539, allocations: 3.953 kB / 457 MB, free: 7.016 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006413/0.5397, allocations: 411.7 kB / 457.4 MB, free: 6.566 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.5397, allocations: 4.062 kB / 457.4 MB, free: 6.562 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002999/0.54, allocations: 35.97 kB / 457.4 MB, free: 6.527 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001572/0.5402, allocations: 24.84 kB / 457.5 MB, free: 6.5 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.5402, allocations: 3.984 kB / 457.5 MB, free: 6.496 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/0.5415, allocations: 1.248 MB / 458.7 MB, free: 5.133 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.5415, allocations: 12.08 kB / 458.7 MB, free: 5.121 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004308/0.5419, allocations: 178.6 kB / 458.9 MB, free: 4.918 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.5421, allocations: 104.7 kB / 459 MB, free: 4.797 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.461e-05/0.5421, allocations: 7.984 kB / 459 MB, free: 4.789 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003878/0.5425, allocations: 31.97 kB / 459 MB, free: 4.758 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.496e-05/0.5426, allocations: 23.91 kB / 459.1 MB, free: 4.734 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.5427, allocations: 0 / 459.1 MB, free: 4.734 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002723/0.5429, allocations: 186 kB / 459.2 MB, free: 4.551 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.543, allocations: 0 / 459.2 MB, free: 4.551 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0008309/0.5438, allocations: 123.5 kB / 459.4 MB, free: 4.43 MB / 347.1 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.0008441/0.5447, allocations: 0.8006 MB / 460.2 MB, free: 3.594 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.5458, allocations: 0.554 MB / 460.7 MB, free: 2.996 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.5458, allocations: 0 / 460.7 MB, free: 2.996 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003388/0.5462, allocations: 163.5 kB / 460.9 MB, free: 2.828 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.5466, allocations: 32.61 kB / 460.9 MB, free: 2.797 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.5477, allocations: 369.3 kB / 461.3 MB, free: 2.395 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.5482, allocations: 0.7677 MB / 462 MB, free: 1.598 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.5484, allocations: 87.41 kB / 462.1 MB, free: 1.512 MB / 347.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5484, allocations: 0 / 462.1 MB, free: 1.512 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.879/3.428, allocations: 5.485 MB / 467.6 MB, free: 12.05 MB / 363.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat