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.001145/0.001145, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001612/0.001612, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.001971, allocations: 64.36 kB / 307.1 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.138, allocations: 50.52 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.006542/0.1446, allocations: 2.774 MB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1467, allocations: 0.7089 MB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002977/0.147, allocations: 4 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002047/0.1473, allocations: 39.58 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003078/0.1476, allocations: 95.23 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000403/0.148, allocations: 99.81 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006371/0.1487, allocations: 350.6 kB / 361.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002629/0.149, allocations: 84.69 kB / 361.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003297/0.1493, allocations: 131.4 kB / 361.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003648/0.1497, allocations: 147.4 kB / 362 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.817e-05/0.1498, allocations: 32 kB / 362 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.252e-05/0.1499, allocations: 39.88 kB / 362.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.911e-05/0.15, allocations: 63.81 kB / 362.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002221/0.1502, allocations: 147.2 kB / 362.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004192/0.1507, allocations: 319.2 kB / 362.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1507, allocations: 3.938 kB / 362.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.1507, allocations: 0 / 362.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.1507, allocations: 0 / 362.6 MB, free: 8.922 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.001511/0.1522, allocations: 0.6379 MB / 363.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.1523, allocations: 8.031 kB / 363.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.247e-05/0.1524, allocations: 58.72 kB / 363.3 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.936e-05/0.1525, allocations: 32.56 kB / 363.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000436/0.1529, allocations: 279.6 kB / 363.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.844e-05/0.153, allocations: 16.81 kB / 363.6 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.243e-05/0.153, allocations: 20.36 kB / 363.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007361/0.1538, allocations: 277.9 kB / 363.9 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.1538, allocations: 0 / 363.9 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.1538, allocations: 16 kB / 363.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.1538, allocations: 4 kB / 363.9 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008335/0.1547, allocations: 245.5 kB / 364.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001971/0.1567, allocations: 0.9481 MB / 365.1 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008637/0.1576, allocations: 238.5 kB / 365.4 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000339/0.1579, allocations: 100.8 kB / 365.5 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.1579, allocations: 224 / 365.5 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006015/0.1586, allocations: 185.6 kB / 365.6 MB, free: 5.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.684e-06/0.1586, allocations: 4 kB / 365.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.00239/0.161, allocations: 0.6548 MB / 366.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.1611, allocations: 106.8 kB / 366.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.1614, allocations: 270.4 kB / 366.7 MB, free: 4.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.1615, allocations: 33.7 kB / 366.7 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1616, allocations: 179.9 kB / 366.9 MB, free: 4.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.251e-05/0.1616, allocations: 43.39 kB / 366.9 MB, free: 4.316 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.725e-05/0.1618, allocations: 41.7 kB / 367 MB, free: 4.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1619, allocations: 330.8 kB / 367.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000375/0.1623, allocations: 107.7 kB / 367.4 MB, free: 3.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000392/0.1627, allocations: 163.8 kB / 367.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006812/0.1634, allocations: 272.3 kB / 367.8 MB, free: 3.348 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1634, allocations: 0 / 367.8 MB, free: 3.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001219/0.1646, allocations: 435.5 kB / 368.2 MB, free: 2.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.201e-05/0.1647, allocations: 36.36 kB / 368.3 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1647, allocations: 0 / 368.3 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000412/0.1651, allocations: 76.86 kB / 368.3 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.1653, allocations: 47.84 kB / 368.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002834/0.1682, allocations: 1.951 MB / 370.3 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003464/0.1685, allocations: 47.83 kB / 370.4 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.1686, allocations: 8 kB / 370.4 MB, free: 0.5859 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.1687, allocations: 141.3 kB / 370.5 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.424e-05/0.1688, allocations: 35.75 kB / 370.6 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.466e-05/0.1689, allocations: 29.83 kB / 370.6 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1689, allocations: 0 / 370.6 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.1689, allocations: 0 / 370.6 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1689, allocations: 3.984 kB / 370.6 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000284/0.1692, allocations: 301.3 kB / 370.9 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1692, allocations: 0 / 370.9 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001393/0.1694, allocations: 23.97 kB / 370.9 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1679/0.3373, allocations: 72.12 kB / 371 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.773e-05/0.3373, allocations: 3.938 kB / 371 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002042/0.3394, allocations: 1.756 MB / 372.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3394, allocations: 0 / 372.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.3405, allocations: 356.8 kB / 373.1 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.018e-05/0.3405, allocations: 106.2 kB / 373.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/0.3406, allocations: 8.062 kB / 373.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.3408, allocations: 31.97 kB / 373.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.466e-05/0.3409, allocations: 23.5 kB / 373.3 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.3409, allocations: 4.188 kB / 373.3 MB, free: 18.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001782/0.3411, allocations: 189.8 kB / 373.5 MB, free: 18.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3411, allocations: 0.5 kB / 373.5 MB, free: 18.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003728/0.3415, allocations: 67.56 kB / 373.5 MB, free: 18.78 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001269/0.3428, allocations: 0.8973 MB / 374.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009212/0.3437, allocations: 419.5 kB / 374.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3437, allocations: 0 / 374.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000453/0.3442, allocations: 225.4 kB / 375 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.3445, allocations: 47.02 kB / 375.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004852/0.3494, allocations: 2.935 MB / 378 MB, free: 16.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.3496, allocations: 0.751 MB / 378.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.3497, allocations: 24.83 kB / 378.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.324e-05/0.3498, allocations: 81.44 kB / 378.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3498, allocations: 3.938 kB / 378.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/0.3811, allocations: 6.241 MB / 385.1 MB, free: 14.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.5, allocations: 3.797 kB / 385.1 MB, free: 14.26 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/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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,opAmp.out.v,opAmp.out.i Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,k,opAmp.V0,opAmp.Vns,opAmp.Vps,opAmp.homotopyType,opAmp.i_s,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.p_in,opAmp.p_out,opAmp.p_s,opAmp.strict,opAmp.useSupply,opAmp.v_in,opAmp.v_out,opAmp.vns,opAmp.vps,r1.LossPower,r1.R,r1.R_actual,r1.T,r1.T_heatPort,r1.T_ref,r1.alpha,r1.i,r1.n.i,r1.n.v,r1.p.i,r1.p.v,r1.useHeatPort,r1.v,r2.LossPower,r2.R,r2.R_actual,r2.T,r2.T_heatPort,r2.T_ref,r2.alpha,r2.i,r2.n.i,r2.n.v,r2.p.i,r2.p.v,r2.useHeatPort,r2.v,time,vHys,vIn.V,vIn.falling,vIn.i,vIn.n.i,vIn.n.v,vIn.nperiod,vIn.offset,vIn.p.i,vIn.p.v,vIn.period,vIn.rising,vIn.signalSource.amplitude,vIn.signalSource.falling,vIn.signalSource.nperiod,vIn.signalSource.offset,vIn.signalSource.period,vIn.signalSource.rising,vIn.signalSource.startTime,vIn.signalSource.width,vIn.signalSource.y,vIn.startTime,vIn.v,vIn.width,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v