Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 91.84 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009758/0.0009761, allocations: 187.2 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 223.2 MB / 241.1 MB, free: 5.473 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003236/0.0003237, allocations: 10.45 kB / 300.8 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1195, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002907/0.1225, allocations: 2.347 MB / 353.6 MB, free: 9.305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.1237, allocations: 0.6822 MB / 354.3 MB, free: 8.617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.1239, allocations: 7.938 kB / 354.3 MB, free: 8.609 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.015e-05/0.124, allocations: 31.75 kB / 354.3 MB, free: 8.578 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002481/0.1242, allocations: 107.7 kB / 354.4 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.1245, allocations: 75.84 kB / 354.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003232/0.1248, allocations: 255.5 kB / 354.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.1251, allocations: 98.17 kB / 354.8 MB, free: 8.047 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.1252, allocations: 119.5 kB / 354.9 MB, free: 7.93 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.1254, allocations: 147.4 kB / 355.1 MB, free: 7.785 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.378e-05/0.1255, allocations: 20 kB / 355.1 MB, free: 7.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.021e-05/0.1255, allocations: 19.94 kB / 355.1 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.351e-05/0.1256, allocations: 51.81 kB / 355.2 MB, free: 7.695 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.681e-05/0.1257, allocations: 85.45 kB / 355.3 MB, free: 7.605 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.1259, allocations: 291.2 kB / 355.6 MB, free: 7.32 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.1259, allocations: 0 / 355.6 MB, free: 7.32 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.126, allocations: 0 / 355.6 MB, free: 7.32 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.126, allocations: 0 / 355.6 MB, free: 7.32 MB / 286.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.001249/0.1272, allocations: 0.6535 MB / 356.2 MB, free: 6.609 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.1273, allocations: 16.03 kB / 356.2 MB, free: 6.594 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.099e-05/0.1274, allocations: 58.55 kB / 356.3 MB, free: 6.527 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.866e-05/0.1274, allocations: 31.62 kB / 356.3 MB, free: 6.496 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003557/0.1278, allocations: 286.4 kB / 356.6 MB, free: 6.176 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.1278, allocations: 16.56 kB / 356.6 MB, free: 6.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.1279, allocations: 24 kB / 356.6 MB, free: 6.137 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006891/0.1286, allocations: 331.6 kB / 357 MB, free: 5.805 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1286, allocations: 3.953 kB / 357 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/0.1286, allocations: 12 kB / 357 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1286, allocations: 7.984 kB / 357 MB, free: 5.781 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000808/0.1295, allocations: 306 kB / 357.3 MB, free: 5.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.1313, allocations: 1.169 MB / 358.4 MB, free: 4.227 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000833/0.1321, allocations: 238.6 kB / 358.7 MB, free: 3.984 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.1322, allocations: 0 / 358.7 MB, free: 3.984 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000441/0.1326, allocations: 169.1 kB / 358.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.1326, allocations: 4 kB / 358.8 MB, free: 3.797 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.001323/0.134, allocations: 451.2 kB / 359.3 MB, free: 3.328 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.673e-05/0.1341, allocations: 85.05 kB / 359.4 MB, free: 3.227 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003472/0.1344, allocations: 328.4 kB / 359.7 MB, free: 2.902 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.1344, allocations: 26.08 kB / 359.7 MB, free: 2.871 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.1346, allocations: 211.5 kB / 359.9 MB, free: 2.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.032e-05/0.1346, allocations: 27.56 kB / 359.9 MB, free: 2.633 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.361e-05/0.1347, allocations: 4 kB / 360 MB, free: 2.629 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1348, allocations: 350.7 kB / 360.3 MB, free: 2.277 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003528/0.1352, allocations: 108.2 kB / 360.4 MB, free: 2.168 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004083/0.1356, allocations: 226.9 kB / 360.6 MB, free: 1.895 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003793/0.136, allocations: 157.6 kB / 360.8 MB, free: 1.734 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.136, allocations: 0 / 360.8 MB, free: 1.734 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009559/0.137, allocations: 435.6 kB / 361.2 MB, free: 1.293 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.064e-05/0.137, allocations: 37.7 kB / 361.2 MB, free: 1.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.137, allocations: 8.156 kB / 361.2 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001689/0.1372, allocations: 28.84 kB / 361.3 MB, free: 1.211 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002869/0.1375, allocations: 71.88 kB / 361.3 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.1386, allocations: 1.308 MB / 362.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.1389, allocations: 67.81 kB / 362.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.555e-05/0.139, allocations: 15.98 kB / 362.7 MB, free: 15.61 MB / 302.1 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 () * 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.0001601/0.1391, allocations: 144.1 kB / 362.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.471e-05/0.1392, allocations: 27.72 kB / 362.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.933e-05/0.1392, allocations: 30.61 kB / 362.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1393, allocations: 4 kB / 362.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.1393, allocations: 0 / 362.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1393, allocations: 7.938 kB / 362.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004459/0.1397, allocations: 447.1 kB / 363.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1397, allocations: 0 / 363.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001847/0.1399, allocations: 47.92 kB / 363.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.215e-05/0.14, allocations: 24.84 kB / 363.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.1401, allocations: 4 kB / 363.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009237/0.141, allocations: 1.311 MB / 364.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.141, allocations: 0 / 364.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000798/0.1418, allocations: 316.2 kB / 365.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.801e-05/0.1419, allocations: 104.8 kB / 365.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.723e-05/0.142, allocations: 4 kB / 365.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.1422, allocations: 35.97 kB / 365.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.453e-05/0.1423, allocations: 19.97 kB / 365.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.1423, allocations: 3.938 kB / 365.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002355/0.1426, allocations: 231.1 kB / 365.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1426, allocations: 0 / 365.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003415/0.1429, allocations: 67.94 kB / 365.5 MB, free: 12.56 MB / 302.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) * Number of clocked states: 0 () * 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.001125/0.144, allocations: 0.9262 MB / 366.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.1451, allocations: 442 kB / 366.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1451, allocations: 0 / 366.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004838/0.1456, allocations: 231.3 kB / 367.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/0.1459, allocations: 45.8 kB / 367.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004113/0.15, allocations: 4.194 MB / 371.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000309/0.1503, allocations: 0.7599 MB / 372.1 MB, free: 5.742 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001321/0.1505, allocations: 34.97 kB / 372.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.1506, allocations: 83.41 kB / 372.2 MB, free: 5.629 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1506, allocations: 288 / 372.2 MB, free: 5.629 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0177/0.1683, allocations: 5.45 MB / 377.7 MB, free: 384 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002136/0.1686, allocations: 211.9 kB / 377.9 MB, free: 132 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.893/2.061, allocations: 0 / 377.9 MB, free: 132 kB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat