Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",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.0009455/0.0009454, allocations: 88.16 kB / 16.31 MB, free: 5.555 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.001516/0.001516, allocations: 181.5 kB / 17.21 MB, free: 5.473 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.432/1.432, allocations: 223.3 MB / 241.2 MB, free: 336 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002423/0.0002424, allocations: 8 kB / 300.9 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.118, allocations: 50.42 MB / 351.4 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.002836/0.1209, allocations: 2.336 MB / 353.7 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.1219, allocations: 0.6431 MB / 354.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.122, allocations: 4 kB / 354.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.1222, allocations: 27.77 kB / 354.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.1223, allocations: 75.38 kB / 354.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002316/0.1226, allocations: 67.91 kB / 354.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.1229, allocations: 314.6 kB / 354.8 MB, free: 460 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.1231, allocations: 72.94 kB / 354.9 MB, free: 384 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.1232, allocations: 115.5 kB / 355 MB, free: 268 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.1235, allocations: 127.4 kB / 355.1 MB, free: 140 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.861e-05/0.1235, allocations: 16 kB / 355.1 MB, free: 124 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.707e-05/0.1236, allocations: 12 kB / 355.1 MB, free: 112 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.748e-05/0.1236, allocations: 51.75 kB / 355.2 MB, free: 60 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.1238, allocations: 77.59 kB / 355.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003023/0.1241, allocations: 235.5 kB / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1241, allocations: 0 / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1241, allocations: 0 / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.1241, allocations: 0 / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001124/0.1253, allocations: 0.6184 MB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1253, allocations: 8.031 kB / 356.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.252e-05/0.1254, allocations: 54.55 kB / 356.2 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.546e-05/0.1255, allocations: 27.72 kB / 356.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003436/0.1258, allocations: 266.5 kB / 356.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.1259, allocations: 20.42 kB / 356.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.433e-05/0.1259, allocations: 16 kB / 356.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006484/0.1266, allocations: 293.7 kB / 356.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.1266, allocations: 4 kB / 356.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.83e-05/0.1266, allocations: 11.95 kB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.1266, allocations: 8 kB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000679/0.1273, allocations: 269.6 kB / 357.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.1288, allocations: 0.9792 MB / 358.1 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007689/0.1296, allocations: 274.5 kB / 358.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003053/0.1299, allocations: 116.7 kB / 358.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.1299, allocations: 4 kB / 358.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004606/0.1304, allocations: 189.8 kB / 358.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.1304, allocations: 0 / 358.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002127/0.1326, allocations: 0.7371 MB / 359.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/0.1327, allocations: 110.8 kB / 359.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000282/0.1329, allocations: 262.6 kB / 359.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.133, allocations: 29.7 kB / 359.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.1331, allocations: 171.9 kB / 359.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.89e-05/0.1332, allocations: 47.38 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.428e-05/0.1332, allocations: 8 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1333, allocations: 330.8 kB / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003281/0.1337, allocations: 111.9 kB / 360.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003628/0.134, allocations: 180.4 kB / 360.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003403/0.1344, allocations: 149.6 kB / 360.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1344, allocations: 4 kB / 360.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001106/0.1355, allocations: 471.5 kB / 361.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/0.1356, allocations: 33.7 kB / 361.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1356, allocations: 3.984 kB / 361.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000357/0.1359, allocations: 88.86 kB / 361.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.1361, allocations: 43.91 kB / 361.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002441/0.1386, allocations: 1.791 MB / 363.2 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002967/0.1389, allocations: 59.81 kB / 363.2 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.1389, allocations: 8 kB / 363.2 MB, free: 7.523 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001493/0.1391, allocations: 145.8 kB / 363.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.342e-05/0.1391, allocations: 23.72 kB / 363.4 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.564e-05/0.1392, allocations: 30 kB / 363.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1392, allocations: 0 / 363.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.1392, allocations: 3.938 kB / 363.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1392, allocations: 4 kB / 363.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002675/0.1395, allocations: 289.4 kB / 363.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1395, allocations: 0 / 363.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.1396, allocations: 27.97 kB / 363.7 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002991/0.1399, allocations: 84.8 kB / 363.8 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.14, allocations: 128 / 363.8 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002173/0.1421, allocations: 1.679 MB / 365.5 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1421, allocations: 4.031 kB / 365.5 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.1432, allocations: 396.6 kB / 365.9 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.436e-05/0.1433, allocations: 96.91 kB / 366 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.1433, allocations: 4 kB / 366 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.1436, allocations: 47.95 kB / 366 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.793e-05/0.1437, allocations: 23.91 kB / 366.1 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.1437, allocations: 3.938 kB / 366.1 MB, free: 4.453 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000209/0.1439, allocations: 190 kB / 366.3 MB, free: 4.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1439, allocations: 0 / 366.3 MB, free: 4.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003748/0.1443, allocations: 71.84 kB / 366.3 MB, free: 4.199 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001537/0.1458, allocations: 0.9252 MB / 367.2 MB, free: 3.238 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.1469, allocations: 441.9 kB / 367.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1469, allocations: 320 / 367.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004752/0.1474, allocations: 242.6 kB / 367.9 MB, free: 2.531 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.1478, allocations: 55.22 kB / 368 MB, free: 2.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003356/0.1512, allocations: 1.675 MB / 369.6 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1836/0.3347, allocations: 0.7387 MB / 370.4 MB, free: 24.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.335, allocations: 23.19 kB / 370.4 MB, free: 24.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.3352, allocations: 74.12 kB / 370.5 MB, free: 24.21 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3352, allocations: 0 / 370.5 MB, free: 24.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02129/0.3565, allocations: 5.61 MB / 376.1 MB, free: 23.92 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001442/0.3567, allocations: 227 kB / 376.3 MB, free: 23.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.006/2.362, allocations: 0 / 376.3 MB, free: 23.68 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat