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.002206/0.002207, allocations: 181.1 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.205/2.205, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001068/0.001068, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.371e-05/3.384e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09432/0.09438, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4047/0.4991, allocations: 80.04 MB / 449.2 MB, free: 12.85 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/0.4994, allocations: 80.27 kB / 449.3 MB, free: 12.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02881/0.5283, allocations: 6.119 MB / 455.4 MB, free: 7.566 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5283, allocations: 0 / 455.4 MB, free: 7.566 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.31e-05/0.5284, allocations: 8 kB / 455.4 MB, free: 7.559 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.001663/0.53, allocations: 0.6055 MB / 456 MB, free: 6.926 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.5301, allocations: 8.031 kB / 456.1 MB, free: 6.918 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.5302, allocations: 57.3 kB / 456.1 MB, free: 6.867 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.5303, allocations: 35.53 kB / 456.1 MB, free: 6.832 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005721/0.5309, allocations: 296 kB / 456.4 MB, free: 6.535 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/0.531, allocations: 23.69 kB / 456.5 MB, free: 6.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.495e-05/0.5311, allocations: 23.25 kB / 456.5 MB, free: 6.504 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006398/0.5317, allocations: 236.7 kB / 456.7 MB, free: 6.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.5317, allocations: 0 / 456.7 MB, free: 6.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.363e-05/0.5318, allocations: 10.81 kB / 456.7 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.5318, allocations: 4 kB / 456.7 MB, free: 6.332 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005772/0.5324, allocations: 192 kB / 456.9 MB, free: 6.215 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/0.5354, allocations: 1.125 MB / 458 MB, free: 5.199 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000524/0.5359, allocations: 116.9 kB / 458.2 MB, free: 5.109 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.5361, allocations: 48.92 kB / 458.2 MB, free: 5.074 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.874e-05/0.5361, allocations: 3.984 kB / 458.2 MB, free: 5.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003137/0.5365, allocations: 122.2 kB / 458.3 MB, free: 4.953 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.304e-06/0.5365, allocations: 0 / 458.3 MB, free: 4.953 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005682/0.537, allocations: 162.8 kB / 458.5 MB, free: 4.812 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.985e-05/0.5371, allocations: 89.12 kB / 458.6 MB, free: 4.707 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005013/0.5377, allocations: 287.9 kB / 458.8 MB, free: 4.477 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.07e-05/0.5377, allocations: 32.33 kB / 458.9 MB, free: 4.441 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.5379, allocations: 253.1 kB / 459.1 MB, free: 4.223 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.538, allocations: 33.98 kB / 459.2 MB, free: 4.195 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.068e-05/0.538, allocations: 3.312 kB / 459.2 MB, free: 4.195 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.5382, allocations: 325 kB / 459.5 MB, free: 3.875 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.5384, allocations: 52.48 kB / 459.5 MB, free: 3.844 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.5386, allocations: 164.1 kB / 459.7 MB, free: 3.664 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002344/0.5389, allocations: 106 kB / 459.8 MB, free: 3.574 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.5389, allocations: 0 / 459.8 MB, free: 3.574 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007889/0.5397, allocations: 289.9 kB / 460.1 MB, free: 3.332 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007178/0.5405, allocations: 1.429 MB / 461.5 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.5405, allocations: 4 kB / 461.5 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002846/0.5408, allocations: 31.86 kB / 461.5 MB, free: 1.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005322/0.5413, allocations: 67.89 kB / 461.6 MB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00143/0.5428, allocations: 1.3 MB / 462.9 MB, free: 340 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006586/0.5435, allocations: 59.38 kB / 463 MB, free: 284 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.74e-05/0.5435, allocations: 15.94 kB / 463 MB, free: 272 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.5435, allocations: 8.094 kB / 463 MB, free: 264 kB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007093/0.5443, allocations: 258.3 kB / 463.2 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/0.5443, allocations: 4.469 kB / 463.2 MB, free: 52 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001279/0.5444, allocations: 28.78 kB / 463.3 MB, free: 24 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004615/0.5449, allocations: 59.78 kB / 463.3 MB, free: 15.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.5463, allocations: 1.29 MB / 464.6 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00048/0.5468, allocations: 47.7 kB / 464.7 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.5468, allocations: 15.88 kB / 464.7 MB, free: 14.54 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.0001712/0.547, allocations: 122.9 kB / 464.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.761e-05/0.5471, allocations: 27.7 kB / 464.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.805e-05/0.5472, allocations: 29.39 kB / 464.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.5472, allocations: 0 / 464.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.5473, allocations: 0 / 464.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.5473, allocations: 11.94 kB / 464.9 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006794/0.548, allocations: 450.4 kB / 465.3 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.548, allocations: 4.031 kB / 465.3 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003117/0.5483, allocations: 39.89 kB / 465.4 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001683/0.5485, allocations: 24.72 kB / 465.4 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.5485, allocations: 4 kB / 465.4 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001357/0.5499, allocations: 1.305 MB / 466.7 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5499, allocations: 4.062 kB / 466.7 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005141/0.5505, allocations: 194.5 kB / 466.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.5506, allocations: 104.7 kB / 467 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.351e-05/0.5507, allocations: 8 kB / 467 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004271/0.5511, allocations: 39.58 kB / 467 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.5512, allocations: 19.86 kB / 467.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.5513, allocations: 3.984 kB / 467.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003692/0.5517, allocations: 224 kB / 467.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5517, allocations: 0 / 467.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007785/0.5525, allocations: 127.1 kB / 467.4 MB, free: 11.82 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.00104/0.5535, allocations: 0.8112 MB / 468.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001388/0.5549, allocations: 0.5793 MB / 468.8 MB, free: 10.35 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.5549, allocations: 0 / 468.8 MB, free: 10.35 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003777/0.5553, allocations: 179.1 kB / 469 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004685/0.5558, allocations: 40.75 kB / 469 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.5571, allocations: 376.6 kB / 469.4 MB, free: 9.707 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004875/0.5576, allocations: 0.7602 MB / 470.1 MB, free: 8.918 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.5579, allocations: 95.39 kB / 470.2 MB, free: 8.824 MB / 346.7 MB Notification: Performance of SimCode: time 1.382e-06/0.5579, allocations: 0 / 470.2 MB, free: 8.824 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.154/3.712, allocations: 5.661 MB / 475.9 MB, free: 3.156 MB / 346.7 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