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.001525/0.001526, allocations: 185.5 kB / 16.4 MB, free: 5.746 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.987/1.987, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001115/0.001114, allocations: 91.72 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003983/0.0003984, allocations: 12 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3255, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.4599, allocations: 80.14 MB / 454.8 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/0.4603, allocations: 79.95 kB / 454.9 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03039/0.4907, allocations: 6.128 MB / 461 MB, free: 10.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4907, allocations: 0 / 461 MB, free: 10.37 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.597e-05/0.4908, allocations: 8 kB / 461 MB, free: 10.36 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.001977/0.4928, allocations: 0.6462 MB / 461.6 MB, free: 9.656 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.4928, allocations: 8.031 kB / 461.7 MB, free: 9.648 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000163/0.493, allocations: 62.48 kB / 461.7 MB, free: 9.578 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.4931, allocations: 35.62 kB / 461.7 MB, free: 9.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006209/0.4938, allocations: 291.3 kB / 462 MB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.695e-05/0.4938, allocations: 20.56 kB / 462.1 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.077e-05/0.4939, allocations: 24 kB / 462.1 MB, free: 9.176 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.4951, allocations: 300.7 kB / 462.4 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.4952, allocations: 3.984 kB / 462.4 MB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.982e-05/0.4952, allocations: 12 kB / 462.4 MB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.4953, allocations: 4 kB / 462.4 MB, free: 8.855 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.4969, allocations: 318 kB / 462.7 MB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003363/0.5003, allocations: 1.13 MB / 463.8 MB, free: 7.324 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.5018, allocations: 250.5 kB / 464.1 MB, free: 7.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.742e-05/0.5019, allocations: 4 kB / 464.1 MB, free: 7.066 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007344/0.5027, allocations: 163.1 kB / 464.2 MB, free: 6.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 2.896e-06/0.5027, allocations: 4 kB / 464.2 MB, free: 6.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.002176/0.5049, allocations: 443.3 kB / 464.7 MB, free: 6.426 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/0.505, allocations: 81.11 kB / 464.8 MB, free: 6.328 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005735/0.5056, allocations: 291.6 kB / 465 MB, free: 6.043 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.236e-05/0.5057, allocations: 29.7 kB / 465.1 MB, free: 6.008 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002239/0.5059, allocations: 258 kB / 465.3 MB, free: 5.754 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.825e-05/0.506, allocations: 35.55 kB / 465.4 MB, free: 5.719 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.506, allocations: 4 kB / 465.4 MB, free: 5.715 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.5062, allocations: 322.8 kB / 465.7 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006355/0.5068, allocations: 108.2 kB / 465.8 MB, free: 5.285 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000741/0.5076, allocations: 222 kB / 466 MB, free: 5.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006549/0.5083, allocations: 159.9 kB / 466.1 MB, free: 4.859 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.5083, allocations: 0 / 466.1 MB, free: 4.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001646/0.51, allocations: 396 kB / 466.5 MB, free: 4.457 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007329/0.5107, allocations: 1.421 MB / 468 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/0.5108, allocations: 4 kB / 468 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000322/0.5111, allocations: 36.77 kB / 468 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005723/0.5117, allocations: 72.22 kB / 468.1 MB, free: 2.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001526/0.5132, allocations: 1.315 MB / 469.4 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006761/0.514, allocations: 59.91 kB / 469.4 MB, free: 1.305 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.702e-05/0.514, allocations: 12 kB / 469.5 MB, free: 1.293 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.5141, allocations: 3.938 kB / 469.5 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001468/0.5156, allocations: 354.4 kB / 469.8 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.5156, allocations: 4 kB / 469.8 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001337/0.5158, allocations: 20.86 kB / 469.8 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004559/0.5162, allocations: 59.89 kB / 469.9 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.5176, allocations: 1.292 MB / 471.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004851/0.5181, allocations: 48.03 kB / 471.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-05/0.5182, allocations: 12 kB / 471.2 MB, free: 15.36 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.0003283/0.5185, allocations: 221 kB / 471.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.5186, allocations: 27.62 kB / 471.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.95e-05/0.5187, allocations: 33.89 kB / 471.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.5187, allocations: 4 kB / 471.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5188, allocations: 4 kB / 471.5 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.5188, allocations: 3.953 kB / 471.5 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008241/0.5196, allocations: 455.1 kB / 472 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.5196, allocations: 0 / 472 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000346/0.52, allocations: 40 kB / 472 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001876/0.5202, allocations: 24.84 kB / 472 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.5202, allocations: 3.984 kB / 472 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.5216, allocations: 1.307 MB / 473.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.986e-06/0.5216, allocations: 4.031 kB / 473.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.5229, allocations: 312.1 kB / 473.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.5231, allocations: 100.8 kB / 473.7 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.238e-05/0.5232, allocations: 3.984 kB / 473.8 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004327/0.5236, allocations: 31.97 kB / 473.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.5237, allocations: 19.97 kB / 473.8 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.5238, allocations: 8 kB / 473.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003747/0.5241, allocations: 223.1 kB / 474 MB, free: 12.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.675e-06/0.5242, allocations: 0 / 474 MB, free: 12.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007659/0.5249, allocations: 131.6 kB / 474.2 MB, free: 12.18 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.001671/0.5266, allocations: 0.9132 MB / 475.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002406/0.5291, allocations: 0.7319 MB / 475.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.5291, allocations: 3.938 kB / 475.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007494/0.5299, allocations: 230.6 kB / 476 MB, free: 10.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004634/0.5303, allocations: 44.78 kB / 476.1 MB, free: 10.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006128/0.5365, allocations: 4.068 MB / 480.1 MB, free: 5.969 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.537, allocations: 0.7638 MB / 480.9 MB, free: 5.18 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002871/0.5373, allocations: 87.41 kB / 481 MB, free: 5.094 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5373, allocations: 0 / 481 MB, free: 5.094 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.605/3.143, allocations: 5.754 MB / 486.7 MB, free: 15.35 MB / 378.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