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.001416/0.001416, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001519/0.001519, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.534/1.534, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001035/0.001035, allocations: 47.94 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1285, allocations: 49.45 MB / 349.5 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004728/0.1333, allocations: 2.788 MB / 352.3 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.1349, allocations: 0.6817 MB / 353 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002918/0.1352, allocations: 4 kB / 353 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001956/0.1355, allocations: 27.77 kB / 353 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.1358, allocations: 79.39 kB / 353.1 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003373/0.1361, allocations: 79.92 kB / 353.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000456/0.1366, allocations: 338.5 kB / 353.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002262/0.1368, allocations: 73 kB / 353.6 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/0.137, allocations: 127.4 kB / 353.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.1373, allocations: 143.3 kB / 353.9 MB, free: 408 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.042e-05/0.1373, allocations: 16 kB / 353.9 MB, free: 392 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.594e-05/0.1374, allocations: 24 kB / 353.9 MB, free: 368 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.567e-05/0.1375, allocations: 47.83 kB / 353.9 MB, free: 320 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001572/0.1376, allocations: 135.2 kB / 354.1 MB, free: 184 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003367/0.138, allocations: 315.2 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.138, allocations: 0 / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.138, allocations: 3.938 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.138, allocations: 3.938 kB / 354.4 MB, free: 15.86 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.001365/0.1394, allocations: 0.6379 MB / 355 MB, free: 15.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.1395, allocations: 8.031 kB / 355 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.647e-05/0.1395, allocations: 54.73 kB / 355.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.62e-05/0.1396, allocations: 32.56 kB / 355.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.14, allocations: 275.6 kB / 355.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.14, allocations: 16.81 kB / 355.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.926e-05/0.1401, allocations: 20.38 kB / 355.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007054/0.1408, allocations: 277.9 kB / 355.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1408, allocations: 4 kB / 355.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.526e-05/0.1408, allocations: 7.938 kB / 355.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.1409, allocations: 12 kB / 355.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007728/0.1416, allocations: 245.5 kB / 356 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001654/0.1433, allocations: 0.9481 MB / 356.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008534/0.1442, allocations: 242.5 kB / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003474/0.1445, allocations: 100.8 kB / 357.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.1446, allocations: 0 / 357.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005448/0.1451, allocations: 182 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.623e-06/0.1451, allocations: 3.938 kB / 357.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002295/0.1474, allocations: 0.6512 MB / 358.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.662e-05/0.1475, allocations: 110.8 kB / 358.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.1478, allocations: 270.4 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/0.1479, allocations: 29.7 kB / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.148, allocations: 176 kB / 358.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.4e-05/0.148, allocations: 47.3 kB / 358.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.859e-05/0.1481, allocations: 41.7 kB / 358.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1483, allocations: 330.8 kB / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003632/0.1487, allocations: 99.92 kB / 359.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003806/0.1491, allocations: 172 kB / 359.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007111/0.1498, allocations: 264.4 kB / 359.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.1498, allocations: 0 / 359.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001186/0.151, allocations: 431.6 kB / 360 MB, free: 9.867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.414e-05/0.151, allocations: 36.2 kB / 360 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1511, allocations: 0 / 360 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000394/0.1515, allocations: 80.86 kB / 360.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.1517, allocations: 39.91 kB / 360.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002475/0.1541, allocations: 1.764 MB / 361.9 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003336/0.1545, allocations: 51.89 kB / 362 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.1545, allocations: 12 kB / 362 MB, free: 7.742 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.0001688/0.1547, allocations: 133.8 kB / 362.1 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.343e-05/0.1548, allocations: 23.72 kB / 362.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.406e-05/0.1548, allocations: 37.8 kB / 362.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.1548, allocations: 0 / 362.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1548, allocations: 3.938 kB / 362.2 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.1548, allocations: 0 / 362.2 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.1552, allocations: 289.4 kB / 362.5 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1552, allocations: 4 kB / 362.5 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.1553, allocations: 23.97 kB / 362.5 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002684/0.1556, allocations: 72.8 kB / 362.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.1556, allocations: 4 kB / 362.6 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002168/0.1578, allocations: 1.64 MB / 364.2 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1578, allocations: 0 / 364.2 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.1589, allocations: 361.5 kB / 364.6 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.159, allocations: 96.77 kB / 364.6 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.159, allocations: 11.94 kB / 364.7 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/0.1593, allocations: 35.95 kB / 364.7 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.836e-05/0.1594, allocations: 19.97 kB / 364.7 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.1594, allocations: 8 kB / 364.7 MB, free: 4.766 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.1596, allocations: 193.8 kB / 364.9 MB, free: 4.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1596, allocations: 0 / 364.9 MB, free: 4.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003868/0.16, allocations: 63.91 kB / 365 MB, free: 4.516 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.001443/0.1614, allocations: 0.9089 MB / 365.9 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009876/0.1624, allocations: 406.2 kB / 366.3 MB, free: 3.152 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.1625, allocations: 4.062 kB / 366.3 MB, free: 3.148 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004923/0.163, allocations: 230.4 kB / 366.5 MB, free: 2.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.1634, allocations: 40.55 kB / 366.5 MB, free: 2.871 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1986/0.362, allocations: 2.997 MB / 369.5 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.3624, allocations: 0.7459 MB / 370.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002161/0.3626, allocations: 25.58 kB / 370.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.3627, allocations: 72.72 kB / 370.4 MB, free: 24.32 MB / 302.1 MB Notification: Performance of SimCode: time 1.402e-06/0.3627, allocations: 1.031 kB / 370.4 MB, free: 24.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02493/0.3877, allocations: 5.805 MB / 376.2 MB, free: 23.98 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002971/0.3881, allocations: 247.2 kB / 376.4 MB, free: 23.72 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.108/2.496, allocations: 0 / 376.4 MB, free: 23.72 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/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) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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