Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000745/0.0007453, allocations: 96.59 kB / 17 MB, free: 6.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008424/0.0008425, allocations: 190.2 kB / 17.9 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.3 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.0003483, allocations: 4 kB / 306.8 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1445, allocations: 51.5 MB / 358.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003094/0.1477, allocations: 2.362 MB / 360.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1491, allocations: 0.6743 MB / 361.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000243/0.1494, allocations: 7.938 kB / 361.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.1496, allocations: 35.75 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002385/0.1498, allocations: 71.39 kB / 361.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.1501, allocations: 71.92 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004047/0.1505, allocations: 310.6 kB / 361.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.1507, allocations: 79.84 kB / 361.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001971/0.1509, allocations: 111.6 kB / 362 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.1511, allocations: 135.4 kB / 362.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.372e-05/0.1512, allocations: 12 kB / 362.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.655e-05/0.1512, allocations: 16 kB / 362.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.373e-05/0.1513, allocations: 47.77 kB / 362.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.073e-05/0.1514, allocations: 69.58 kB / 362.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002307/0.1516, allocations: 235.6 kB / 362.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1516, allocations: 0 / 362.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1516, allocations: 4 kB / 362.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.445e-06/0.1516, allocations: 0 / 362.5 MB, free: 9.496 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.001019/0.1527, allocations: 0.6145 MB / 363.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.1527, allocations: 12.03 kB / 363.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.404e-05/0.1528, allocations: 54.48 kB / 363.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.438e-05/0.1529, allocations: 27.72 kB / 363.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.1532, allocations: 282.4 kB / 363.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.1533, allocations: 20.39 kB / 363.5 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.15e-05/0.1533, allocations: 20 kB / 363.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000584/0.1539, allocations: 285.8 kB / 363.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1539, allocations: 4 kB / 363.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.1539, allocations: 4 kB / 363.8 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1539, allocations: 4 kB / 363.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006821/0.1546, allocations: 281.5 kB / 364.1 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.1562, allocations: 0.9637 MB / 365.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007154/0.1569, allocations: 278.5 kB / 365.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.1572, allocations: 116.8 kB / 365.5 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.1572, allocations: 4 kB / 365.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004308/0.1577, allocations: 189.8 kB / 365.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.272e-06/0.1577, allocations: 4 kB / 365.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.001996/0.1597, allocations: 0.7327 MB / 366.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.834e-05/0.1598, allocations: 106.8 kB / 366.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.16, allocations: 266.6 kB / 366.8 MB, free: 4.984 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.1601, allocations: 29.7 kB / 366.8 MB, free: 4.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.1602, allocations: 179.8 kB / 367 MB, free: 4.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.87e-05/0.1602, allocations: 43.38 kB / 367 MB, free: 4.727 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.482e-05/0.1603, allocations: 11.94 kB / 367 MB, free: 4.715 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1604, allocations: 338.8 kB / 367.4 MB, free: 4.375 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/0.1607, allocations: 115.9 kB / 367.5 MB, free: 4.262 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003625/0.1611, allocations: 191.5 kB / 367.7 MB, free: 4.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003359/0.1614, allocations: 160.3 kB / 367.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1614, allocations: 4 kB / 367.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001106/0.1626, allocations: 475.6 kB / 368.3 MB, free: 3.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.1626, allocations: 45.72 kB / 368.3 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1626, allocations: 0 / 368.3 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003219/0.1629, allocations: 80.8 kB / 368.4 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.1631, allocations: 51.97 kB / 368.5 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00286/0.166, allocations: 1.861 MB / 370.3 MB, free: 1.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.1664, allocations: 55.8 kB / 370.4 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.1664, allocations: 12.06 kB / 370.4 MB, free: 1.141 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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.0002108/0.1667, allocations: 138.5 kB / 370.5 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.243e-05/0.1667, allocations: 23.72 kB / 370.5 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.801e-05/0.1668, allocations: 25.83 kB / 370.6 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1668, allocations: 3.938 kB / 370.6 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1668, allocations: 0 / 370.6 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.1668, allocations: 3.984 kB / 370.6 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003517/0.1672, allocations: 305.3 kB / 370.9 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1672, allocations: 4 kB / 370.9 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/0.1673, allocations: 31.91 kB / 370.9 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002729/0.1676, allocations: 84.8 kB / 371 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.1676, allocations: 0 / 371 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2445/0.4121, allocations: 1.742 MB / 372.7 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4122, allocations: 0 / 372.7 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.4134, allocations: 401.7 kB / 373.1 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.135e-05/0.4135, allocations: 103 kB / 373.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.83e-05/0.4135, allocations: 10.02 kB / 373.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.4138, allocations: 43.98 kB / 373.3 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.546e-05/0.4138, allocations: 18.16 kB / 373.3 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.4139, allocations: 11.36 kB / 373.3 MB, free: 18.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002813/0.4142, allocations: 193.5 kB / 373.5 MB, free: 18.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4142, allocations: 0 / 373.5 MB, free: 18.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004857/0.4146, allocations: 69.98 kB / 373.6 MB, free: 18.2 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.001417/0.4161, allocations: 0.9346 MB / 374.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001384/0.4175, allocations: 0.5123 MB / 375 MB, free: 17.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4175, allocations: 1.094 kB / 375 MB, free: 17.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005111/0.418, allocations: 241.4 kB / 375.2 MB, free: 17.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.4184, allocations: 44.98 kB / 375.3 MB, free: 17.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005645/0.424, allocations: 2.217 MB / 377.5 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.4242, allocations: 0.7416 MB / 378.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001364/0.4244, allocations: 25.27 kB / 378.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.4245, allocations: 72.61 kB / 378.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4245, allocations: 0 / 378.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02086/0.4454, allocations: 5.623 MB / 384 MB, free: 15.2 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002383/0.4457, allocations: 233.7 kB / 384.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.942/2.387, allocations: 0.9688 kB / 384.2 MB, free: 14.96 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat does not exist to compare? outputFormat=mat