Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_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_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.0008665/0.0008665, allocations: 97.86 kB / 16.95 MB, free: 6.453 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.001077/0.001077, allocations: 182.9 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.728/1.728, allocations: 205.4 MB / 224 MB, free: 13.09 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004746/0.0004748, allocations: 12 kB / 280.9 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1303, allocations: 47.58 MB / 328.5 MB, free: 3.961 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003129/0.1335, allocations: 2.415 MB / 330.9 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1347, allocations: 0.7063 MB / 331.6 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.1349, allocations: 7.938 kB / 331.6 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.135, allocations: 35.75 kB / 331.6 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001745/0.1352, allocations: 75.38 kB / 331.7 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.1355, allocations: 79.84 kB / 331.8 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003631/0.1359, allocations: 354.5 kB / 332.1 MB, free: 276 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002142/0.1361, allocations: 98.31 kB / 332.2 MB, free: 180 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.1363, allocations: 119.5 kB / 332.3 MB, free: 60 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.1365, allocations: 147.3 kB / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.859e-05/0.1366, allocations: 24 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.249e-05/0.1366, allocations: 16 kB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.254e-05/0.1367, allocations: 55.7 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.593e-05/0.1368, allocations: 81.58 kB / 332.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.1371, allocations: 291.4 kB / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1371, allocations: 0 / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1371, allocations: 0 / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1371, allocations: 4 kB / 332.9 MB, free: 15.45 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.001315/0.1385, allocations: 0.6573 MB / 333.6 MB, free: 14.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.408e-05/0.1385, allocations: 12.02 kB / 333.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.413e-05/0.1386, allocations: 58.55 kB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.142e-05/0.1387, allocations: 39.56 kB / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003947/0.1391, allocations: 286.4 kB / 334 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.1392, allocations: 20.56 kB / 334 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.108e-05/0.1392, allocations: 31.98 kB / 334 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006655/0.1399, allocations: 292.8 kB / 334.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1399, allocations: 0 / 334.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.136e-05/0.1399, allocations: 16 kB / 334.3 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.14, allocations: 7.938 kB / 334.3 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007874/0.1408, allocations: 318 kB / 334.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.1425, allocations: 1.087 MB / 335.7 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007038/0.1433, allocations: 230.6 kB / 336 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002734/0.1435, allocations: 100.8 kB / 336.1 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.1436, allocations: 3.938 kB / 336.1 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004437/0.144, allocations: 172.9 kB / 336.2 MB, free: 11.91 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.342e-06/0.1441, allocations: 0 / 336.2 MB, free: 11.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001162/0.1452, allocations: 447.2 kB / 336.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.1453, allocations: 85.05 kB / 336.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003613/0.1457, allocations: 324.4 kB / 337.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1457, allocations: 29.7 kB / 337.1 MB, free: 10.98 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.1459, allocations: 207.5 kB / 337.3 MB, free: 10.78 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.842e-05/0.1459, allocations: 43.44 kB / 337.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.362e-05/0.1459, allocations: 4 kB / 337.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1461, allocations: 338.8 kB / 337.7 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002864/0.1464, allocations: 104.2 kB / 337.8 MB, free: 10.29 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003636/0.1468, allocations: 222.1 kB / 338 MB, free: 10.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003272/0.1471, allocations: 157.6 kB / 338.2 MB, free: 9.863 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1471, allocations: 4 kB / 338.2 MB, free: 9.859 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008493/0.148, allocations: 415.7 kB / 338.6 MB, free: 9.438 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001579/0.1481, allocations: 219.7 kB / 338.8 MB, free: 9.164 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.1481, allocations: 4 kB / 338.8 MB, free: 9.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.1483, allocations: 32.83 kB / 338.8 MB, free: 9.125 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.1486, allocations: 71.89 kB / 338.9 MB, free: 9.055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.1499, allocations: 1.3 MB / 340.2 MB, free: 7.625 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003496/0.1502, allocations: 55.66 kB / 340.2 MB, free: 7.57 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.341e-05/0.1503, allocations: 20.03 kB / 340.3 MB, free: 7.551 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.925e-06/0.1503, allocations: 8 kB / 340.3 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007626/0.1511, allocations: 338.1 kB / 340.6 MB, free: 7.203 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.1511, allocations: 12.33 kB / 340.6 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.972e-05/0.1512, allocations: 28.84 kB / 340.6 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002311/0.1514, allocations: 59.89 kB / 340.7 MB, free: 7.102 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.1525, allocations: 1.295 MB / 342 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002552/0.1527, allocations: 47.67 kB / 342 MB, free: 5.625 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.1528, allocations: 16.16 kB / 342.1 MB, free: 5.609 MB / 286.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 () * 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.0002233/0.153, allocations: 221 kB / 342.3 MB, free: 5.383 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.153, allocations: 23.72 kB / 342.3 MB, free: 5.359 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.425e-05/0.1531, allocations: 30.27 kB / 342.3 MB, free: 5.328 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.1531, allocations: 4 kB / 342.3 MB, free: 5.324 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1531, allocations: 0 / 342.3 MB, free: 5.324 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.1531, allocations: 0 / 342.3 MB, free: 5.324 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005118/0.1536, allocations: 463 kB / 342.8 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1537, allocations: 0 / 342.8 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/0.1538, allocations: 39.97 kB / 342.8 MB, free: 4.773 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-05/0.1539, allocations: 20.84 kB / 342.8 MB, free: 4.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.154, allocations: 15.95 kB / 342.9 MB, free: 4.734 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.155, allocations: 1.308 MB / 344.2 MB, free: 3.293 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.155, allocations: 0 / 344.2 MB, free: 3.293 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006732/0.1557, allocations: 298.3 kB / 344.5 MB, free: 2.977 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.13e-05/0.1558, allocations: 100.8 kB / 344.6 MB, free: 2.859 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/0.1558, allocations: 7.984 kB / 344.6 MB, free: 2.852 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.156, allocations: 27.97 kB / 344.6 MB, free: 2.824 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.063e-05/0.1561, allocations: 19.97 kB / 344.6 MB, free: 2.805 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.1561, allocations: 8 kB / 344.6 MB, free: 2.797 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000244/0.1564, allocations: 231 kB / 344.8 MB, free: 2.574 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1564, allocations: 0 / 344.8 MB, free: 2.574 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005058/0.1569, allocations: 127.7 kB / 345 MB, free: 2.449 MB / 286.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 (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.001108/0.158, allocations: 0.8246 MB / 345.8 MB, free: 1.59 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.1594, allocations: 0.7312 MB / 346.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1594, allocations: 0 / 346.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004266/0.1598, allocations: 231.3 kB / 346.8 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.1602, allocations: 52.7 kB / 346.8 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003119/0.1633, allocations: 1.785 MB / 348.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.1637, allocations: 0.7522 MB / 349.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002031/0.164, allocations: 42.95 kB / 349.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001876/0.1642, allocations: 87.41 kB / 349.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of SimCode: time 1.182e-06/0.1642, allocations: 0 / 349.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02344/0.1876, allocations: 5.799 MB / 355.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002337/0.1879, allocations: 212.8 kB / 355.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.168/2.356, allocations: 3.938 kB / 355.5 MB, free: 7.684 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat