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.001322/0.001323, allocations: 105.2 kB / 17.06 MB, free: 6.027 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.001232/0.001232, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.047/2.047, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 39.94 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5931/0.5952, allocations: 49.44 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.008202/0.6035, allocations: 2.764 MB / 403 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002924/0.6065, allocations: 0.6739 MB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000578/0.6071, allocations: 4 kB / 403.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003613/0.6076, allocations: 43.56 kB / 403.7 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005197/0.6082, allocations: 95.19 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005051/0.6087, allocations: 83.89 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008429/0.6096, allocations: 366.5 kB / 404.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003537/0.6099, allocations: 80.72 kB / 404.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004244/0.6104, allocations: 127.5 kB / 404.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004989/0.6109, allocations: 155.3 kB / 404.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001833/0.6111, allocations: 32 kB / 404.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.6113, allocations: 28 kB / 404.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.6114, allocations: 59.77 kB / 404.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000425/0.6118, allocations: 143.3 kB / 404.9 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009183/0.6128, allocations: 332.5 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.6128, allocations: 0 / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.6128, allocations: 0 / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.641e-05/0.6129, allocations: 4 kB / 405.2 MB, free: 3.82 MB / 318.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.002252/0.6151, allocations: 0.6379 MB / 405.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.433e-05/0.6152, allocations: 12.03 kB / 405.9 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001062/0.6153, allocations: 50.73 kB / 405.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.6155, allocations: 32.56 kB / 406 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007075/0.6162, allocations: 275.8 kB / 406.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/0.6162, allocations: 16.81 kB / 406.2 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.815e-05/0.6163, allocations: 20.38 kB / 406.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.6173, allocations: 281.8 kB / 406.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.6174, allocations: 0 / 406.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.995e-05/0.6174, allocations: 8 kB / 406.5 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.6175, allocations: 4 kB / 406.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.6187, allocations: 245.6 kB / 406.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002476/0.6212, allocations: 0.9519 MB / 407.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.6224, allocations: 242.5 kB / 408 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004458/0.6229, allocations: 100.8 kB / 408.1 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.6229, allocations: 4 kB / 408.1 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006729/0.6236, allocations: 189.7 kB / 408.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 5.019e-06/0.6236, allocations: 3.984 kB / 408.3 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.003289/0.6269, allocations: 0.6473 MB / 408.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.574e-05/0.627, allocations: 102.8 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000516/0.6276, allocations: 270.6 kB / 409.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.586e-05/0.6276, allocations: 29.7 kB / 409.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.6278, allocations: 180 kB / 409.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.996e-05/0.6279, allocations: 43.39 kB / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.628, allocations: 49.55 kB / 409.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.6282, allocations: 334.8 kB / 409.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003531/0.6285, allocations: 95.92 kB / 410 MB, free: 14.74 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003934/0.6289, allocations: 168.5 kB / 410.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.63, allocations: 262.7 kB / 410.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.63, allocations: 0 / 410.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001966/0.632, allocations: 435.6 kB / 410.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.366e-05/0.6321, allocations: 33.7 kB / 410.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/0.6321, allocations: 4 kB / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005947/0.6328, allocations: 84.8 kB / 411 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003172/0.6331, allocations: 35.97 kB / 411 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004156/0.6373, allocations: 1.955 MB / 412.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000606/0.6379, allocations: 55.66 kB / 413 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.711e-05/0.638, allocations: 8 kB / 413 MB, free: 11.5 MB / 334.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.0003097/0.6383, allocations: 137.8 kB / 413.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.6384, allocations: 31.72 kB / 413.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.289e-05/0.6385, allocations: 21.83 kB / 413.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.6385, allocations: 0 / 413.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6385, allocations: 4 kB / 413.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.6386, allocations: 3.984 kB / 413.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005362/0.6391, allocations: 289.5 kB / 413.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.6391, allocations: 0 / 413.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.6394, allocations: 23.97 kB / 413.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004471/0.6398, allocations: 88.67 kB / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.6399, allocations: 0 / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003645/0.6435, allocations: 1.762 MB / 415.4 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.6436, allocations: 0 / 415.4 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.6453, allocations: 355.8 kB / 415.7 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.6455, allocations: 104.8 kB / 415.8 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.427e-05/0.6456, allocations: 4 kB / 415.8 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003969/0.646, allocations: 39.95 kB / 415.9 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.6462, allocations: 15.98 kB / 415.9 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.6462, allocations: 3.984 kB / 415.9 MB, free: 8.391 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003264/0.6465, allocations: 194 kB / 416.1 MB, free: 8.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6465, allocations: 0 / 416.1 MB, free: 8.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007777/0.6473, allocations: 67.84 kB / 416.1 MB, free: 8.133 MB / 334.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.002286/0.6496, allocations: 0.9055 MB / 417 MB, free: 7.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001626/0.6513, allocations: 409.8 kB / 417.4 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.6513, allocations: 448 / 417.4 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007515/0.6521, allocations: 236.3 kB / 417.7 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000592/0.6527, allocations: 45.78 kB / 417.7 MB, free: 6.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008532/0.6612, allocations: 2.922 MB / 420.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005059/0.6618, allocations: 0.748 MB / 421.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.662, allocations: 18.3 kB / 421.4 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.6622, allocations: 79.41 kB / 421.5 MB, free: 2.547 MB / 334.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6623, allocations: 0 / 421.5 MB, free: 2.547 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05246/0.7147, allocations: 6.488 MB / 428 MB, free: 12.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.75/18.47, allocations: 12 kB / 428 MB, free: 12.23 MB / 350.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