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.0009502/0.0009505, allocations: 88.66 kB / 16.31 MB, free: 6.461 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.0009234/0.0009237, allocations: 181.5 kB / 17.21 MB, free: 6.328 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.557/1.557, allocations: 223.2 MB / 241.2 MB, free: 5.418 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002983/0.0002985, allocations: 7.75 kB / 300.9 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.124, allocations: 50.43 MB / 351.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00298/0.1271, allocations: 2.452 MB / 353.8 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009772/0.1281, allocations: 0.6664 MB / 354.5 MB, free: 8.566 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.1282, allocations: 8 kB / 354.5 MB, free: 8.559 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.1284, allocations: 43.69 kB / 354.5 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001494/0.1285, allocations: 75.38 kB / 354.6 MB, free: 8.441 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002449/0.1288, allocations: 75.91 kB / 354.7 MB, free: 8.367 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003265/0.1291, allocations: 350.5 kB / 355 MB, free: 8.023 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.1293, allocations: 102.2 kB / 355.1 MB, free: 7.918 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001473/0.1295, allocations: 123.4 kB / 355.2 MB, free: 7.797 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.1297, allocations: 147.4 kB / 355.4 MB, free: 7.652 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.363e-05/0.1297, allocations: 19.98 kB / 355.4 MB, free: 7.633 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.405e-05/0.1298, allocations: 20 kB / 355.4 MB, free: 7.613 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.756e-05/0.1298, allocations: 55.7 kB / 355.5 MB, free: 7.559 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.99e-05/0.1299, allocations: 77.58 kB / 355.5 MB, free: 7.477 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002861/0.1302, allocations: 295.2 kB / 355.8 MB, free: 7.188 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1302, allocations: 0 / 355.8 MB, free: 7.188 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1302, allocations: 0 / 355.8 MB, free: 7.188 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1302, allocations: 0 / 355.8 MB, free: 7.188 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.001169/0.1314, allocations: 0.6535 MB / 356.5 MB, free: 6.477 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.1315, allocations: 12.03 kB / 356.5 MB, free: 6.465 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.872e-05/0.1315, allocations: 62.53 kB / 356.6 MB, free: 6.395 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.079e-05/0.1316, allocations: 31.62 kB / 356.6 MB, free: 6.363 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003318/0.1319, allocations: 286.4 kB / 356.9 MB, free: 6.043 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.132, allocations: 16.56 kB / 356.9 MB, free: 6.027 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.132, allocations: 24 kB / 356.9 MB, free: 6.004 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006235/0.1326, allocations: 331.6 kB / 357.2 MB, free: 5.672 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.1327, allocations: 11.89 kB / 357.2 MB, free: 5.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.1327, allocations: 4 kB / 357.2 MB, free: 5.656 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.1327, allocations: 8 kB / 357.3 MB, free: 5.648 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007213/0.1334, allocations: 306 kB / 357.6 MB, free: 5.348 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.1351, allocations: 1.169 MB / 358.7 MB, free: 4.094 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007286/0.1358, allocations: 238.5 kB / 359 MB, free: 3.852 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002883/0.1361, allocations: 108.8 kB / 359.1 MB, free: 3.742 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.595e-05/0.1362, allocations: 0 / 359.1 MB, free: 3.742 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004221/0.1366, allocations: 169 kB / 359.2 MB, free: 3.559 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.1366, allocations: 0 / 359.2 MB, free: 3.559 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.001142/0.1377, allocations: 463.5 kB / 359.7 MB, free: 3.078 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.1378, allocations: 77.11 kB / 359.8 MB, free: 2.984 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000343/0.1382, allocations: 328.4 kB / 360.1 MB, free: 2.66 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.1382, allocations: 25.7 kB / 360.1 MB, free: 2.629 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.1383, allocations: 207.5 kB / 360.3 MB, free: 2.422 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.368e-05/0.1384, allocations: 31.56 kB / 360.3 MB, free: 2.391 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.444e-05/0.1384, allocations: 8 kB / 360.3 MB, free: 2.383 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1385, allocations: 342.8 kB / 360.7 MB, free: 2.039 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003115/0.1388, allocations: 116.1 kB / 360.8 MB, free: 1.922 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003716/0.1392, allocations: 222.9 kB / 361 MB, free: 1.652 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003372/0.1396, allocations: 161.6 kB / 361.2 MB, free: 1.488 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1396, allocations: 0 / 361.2 MB, free: 1.488 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008871/0.1405, allocations: 427.7 kB / 361.6 MB, free: 1.055 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.097e-05/0.1405, allocations: 37.7 kB / 361.6 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.1405, allocations: 4.156 kB / 361.6 MB, free: 1.008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001683/0.1407, allocations: 28.84 kB / 361.7 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.141, allocations: 75.88 kB / 361.7 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009985/0.142, allocations: 1.3 MB / 363 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/0.1423, allocations: 67.72 kB / 363.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/0.1424, allocations: 16 kB / 363.1 MB, free: 15.38 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.0001687/0.1425, allocations: 144.4 kB / 363.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.748e-05/0.1426, allocations: 27.72 kB / 363.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.567e-05/0.1426, allocations: 22.61 kB / 363.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1426, allocations: 8 kB / 363.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1426, allocations: 3.953 kB / 363.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.1427, allocations: 3.984 kB / 363.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000446/0.1431, allocations: 455.1 kB / 363.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1431, allocations: 0 / 363.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.1433, allocations: 43.98 kB / 363.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.743e-05/0.1434, allocations: 24.84 kB / 363.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.1434, allocations: 3.953 kB / 363.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001009/0.1444, allocations: 1.308 MB / 365.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1444, allocations: 32 / 365.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007074/0.1452, allocations: 306.4 kB / 365.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.417e-05/0.1453, allocations: 109 kB / 365.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.345e-05/0.1453, allocations: 0 / 365.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.1455, allocations: 43.91 kB / 365.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.472e-05/0.1456, allocations: 27.84 kB / 365.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.1456, allocations: 0 / 365.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002504/0.1459, allocations: 227.1 kB / 365.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1459, allocations: 0 / 365.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003273/0.1462, allocations: 71.84 kB / 365.9 MB, free: 12.34 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.001222/0.1474, allocations: 0.8324 MB / 366.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.1485, allocations: 442.2 kB / 367.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1485, allocations: 0 / 367.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004669/0.149, allocations: 235.1 kB / 367.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.1494, allocations: 41.06 kB / 367.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/0.1528, allocations: 1.803 MB / 369.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.1531, allocations: 0.756 MB / 370 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.1533, allocations: 30.97 kB / 370 MB, free: 8.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.1534, allocations: 87.39 kB / 370.1 MB, free: 7.926 MB / 302.1 MB Notification: Performance of SimCode: time 2.285e-06/0.1534, allocations: 0 / 370.1 MB, free: 7.926 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.1723, allocations: 5.458 MB / 375.6 MB, free: 2.664 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.1725, allocations: 213.3 kB / 375.8 MB, free: 2.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.97/2.142, allocations: 0 / 375.8 MB, free: 2.426 MB / 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