Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001447/0.001447, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001962/0.001962, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000264/0.0002641, allocations: 8 kB / 306.7 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1309, allocations: 51.5 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.00348/0.1345, allocations: 2.256 MB / 360.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.1359, allocations: 0.6823 MB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.1361, allocations: 4 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.332e-05/0.1361, allocations: 39.75 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002509/0.1364, allocations: 99.64 kB / 361.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.1367, allocations: 67.86 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003287/0.137, allocations: 231.5 kB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001918/0.1372, allocations: 65.12 kB / 361.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.1374, allocations: 111.6 kB / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.1376, allocations: 135.4 kB / 361.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.1376, allocations: 20 kB / 361.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.755e-05/0.1377, allocations: 16 kB / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.656e-05/0.1377, allocations: 43.81 kB / 362 MB, free: 10 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.172e-05/0.1378, allocations: 73.58 kB / 362 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.1381, allocations: 231.6 kB / 362.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.1381, allocations: 0 / 362.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.34e-06/0.1381, allocations: 0 / 362.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.1381, allocations: 3.938 kB / 362.3 MB, free: 9.695 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.001289/0.1394, allocations: 0.6223 MB / 362.9 MB, free: 9.016 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.55e-05/0.1395, allocations: 8.031 kB / 362.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.316e-05/0.1396, allocations: 54.55 kB / 363 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.953e-05/0.1396, allocations: 27.72 kB / 363 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004317/0.1401, allocations: 266.5 kB / 363.2 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.1401, allocations: 20.39 kB / 363.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.1402, allocations: 20 kB / 363.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006841/0.1409, allocations: 289.7 kB / 363.6 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.1409, allocations: 0 / 363.6 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.1409, allocations: 12 kB / 363.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.1409, allocations: 8 kB / 363.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007647/0.1417, allocations: 277.5 kB / 363.9 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.1435, allocations: 0.9676 MB / 364.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009028/0.1444, allocations: 274.5 kB / 365.1 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.1444, allocations: 0 / 365.1 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005493/0.145, allocations: 189.8 kB / 365.3 MB, free: 6.465 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.083e-06/0.145, allocations: 0 / 365.3 MB, free: 6.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002418/0.1474, allocations: 0.7369 MB / 366 MB, free: 5.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/0.1475, allocations: 110.8 kB / 366.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003342/0.1478, allocations: 266.6 kB / 366.4 MB, free: 5.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.1479, allocations: 29.7 kB / 366.4 MB, free: 5.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.148, allocations: 175.9 kB / 366.6 MB, free: 5.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.04e-05/0.1481, allocations: 43.38 kB / 366.6 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.488e-05/0.1481, allocations: 8 kB / 366.6 MB, free: 5.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1483, allocations: 334.8 kB / 367 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003481/0.1486, allocations: 111.9 kB / 367.1 MB, free: 4.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004042/0.149, allocations: 187.8 kB / 367.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003868/0.1494, allocations: 145.6 kB / 367.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1494, allocations: 0 / 367.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001313/0.1508, allocations: 473.9 kB / 367.9 MB, free: 3.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.236e-05/0.1508, allocations: 33.7 kB / 367.9 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1509, allocations: 3.953 kB / 367.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004427/0.1513, allocations: 88.8 kB / 368 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.1515, allocations: 47.91 kB / 368 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002813/0.1544, allocations: 1.819 MB / 369.8 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003775/0.1548, allocations: 59.73 kB / 369.9 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.1548, allocations: 12 kB / 369.9 MB, free: 1.551 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.0002169/0.155, allocations: 141.8 kB / 370.1 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.893e-05/0.1551, allocations: 23.94 kB / 370.1 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.376e-05/0.1551, allocations: 25.83 kB / 370.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.1551, allocations: 8.125 kB / 370.1 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.1551, allocations: 0 / 370.1 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.1552, allocations: 3.984 kB / 370.1 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003431/0.1555, allocations: 293.4 kB / 370.4 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.1555, allocations: 3.953 kB / 370.4 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.1557, allocations: 27.98 kB / 370.4 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003202/0.156, allocations: 76.8 kB / 370.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.156, allocations: 11.98 kB / 370.5 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2137/0.3698, allocations: 1.685 MB / 372.2 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3698, allocations: 0.8438 kB / 372.2 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.371, allocations: 397.6 kB / 372.6 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.694e-05/0.3711, allocations: 98.75 kB / 372.7 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.013e-05/0.3712, allocations: 4.766 kB / 372.7 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002622/0.3714, allocations: 43.75 kB / 372.7 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.116e-05/0.3715, allocations: 18.73 kB / 372.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.3715, allocations: 7.938 kB / 372.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001851/0.3717, allocations: 188.1 kB / 372.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3717, allocations: 0 / 372.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004096/0.3721, allocations: 71.8 kB / 373 MB, free: 18.48 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.001309/0.3735, allocations: 0.9341 MB / 374 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000991/0.3745, allocations: 436.6 kB / 374.4 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3745, allocations: 0 / 374.4 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004835/0.375, allocations: 249 kB / 374.6 MB, free: 17.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.3753, allocations: 43.61 kB / 374.7 MB, free: 17.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003616/0.3789, allocations: 2.712 MB / 377.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001918/0.3791, allocations: 0.755 MB / 378.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.3792, allocations: 21.19 kB / 378.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.3794, allocations: 74.53 kB / 378.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3794, allocations: 4 kB / 378.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01857/0.398, allocations: 5.57 MB / 383.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001393/0.3982, allocations: 223 kB / 384 MB, free: 14.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.928/2.326, allocations: 7.438 kB / 384 MB, free: 14.43 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat