Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001489/0.001497, allocations: 102.4 kB / 17.06 MB, free: 6.125 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.001655/0.001655, allocations: 195 kB / 18 MB, free: 5.203 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.261/2.261, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4673/0.4692, allocations: 49.44 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.006495/0.4758, allocations: 2.767 MB / 403 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.4778, allocations: 0.67 MB / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003155/0.4782, allocations: 4 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000264/0.4785, allocations: 39.58 kB / 403.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003951/0.4789, allocations: 87.27 kB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004808/0.4794, allocations: 103.8 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006199/0.48, allocations: 354.5 kB / 404.3 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002733/0.4803, allocations: 80.7 kB / 404.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002619/0.4806, allocations: 135.4 kB / 404.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002742/0.4809, allocations: 151.4 kB / 404.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.617e-05/0.481, allocations: 32 kB / 404.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.551e-05/0.4811, allocations: 28 kB / 404.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.023e-05/0.4812, allocations: 59.77 kB / 404.8 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002374/0.4814, allocations: 151.2 kB / 404.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006433/0.4821, allocations: 324.5 kB / 405.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.4821, allocations: 0 / 405.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4821, allocations: 0 / 405.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.4821, allocations: 0 / 405.2 MB, free: 3.828 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.001797/0.4839, allocations: 0.6418 MB / 405.9 MB, free: 3.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.045e-05/0.484, allocations: 11.89 kB / 405.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.439e-05/0.4841, allocations: 54.73 kB / 405.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.4842, allocations: 32.56 kB / 406 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000627/0.4849, allocations: 287.7 kB / 406.2 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.127e-05/0.4849, allocations: 12.81 kB / 406.3 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.067e-05/0.485, allocations: 20.38 kB / 406.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000979/0.486, allocations: 281.9 kB / 406.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.486, allocations: 0 / 406.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.486, allocations: 4 kB / 406.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.4861, allocations: 4 kB / 406.6 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.4871, allocations: 253.5 kB / 406.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002344/0.4895, allocations: 0.9363 MB / 407.7 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.4907, allocations: 250.5 kB / 408 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005189/0.4912, allocations: 104.7 kB / 408.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.4913, allocations: 3.984 kB / 408.1 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007201/0.492, allocations: 184.2 kB / 408.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 3.647e-06/0.492, allocations: 0 / 408.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.003713/0.4958, allocations: 0.6512 MB / 408.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.4959, allocations: 110.8 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005694/0.4965, allocations: 266.6 kB / 409.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.346e-05/0.4966, allocations: 37.64 kB / 409.3 MB, free: 15.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002246/0.4968, allocations: 175.9 kB / 409.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.159e-05/0.4969, allocations: 43.45 kB / 409.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.4971, allocations: 49.64 kB / 409.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.4973, allocations: 330.8 kB / 409.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005665/0.4979, allocations: 107.9 kB / 410 MB, free: 14.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007096/0.4986, allocations: 178.2 kB / 410.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.5, allocations: 289.9 kB / 410.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.5, allocations: 0 / 410.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00257/0.5026, allocations: 443.6 kB / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.848e-05/0.5027, allocations: 40.2 kB / 411 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.5028, allocations: 4 kB / 411 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007039/0.5035, allocations: 76.86 kB / 411 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003902/0.5039, allocations: 47.91 kB / 411.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005463/0.5094, allocations: 2.002 MB / 413.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007016/0.5101, allocations: 51.66 kB / 413.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.832e-05/0.5102, allocations: 8 kB / 413.1 MB, free: 11.37 MB / 334.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 (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 (21): * Single equations (assignments): 19 * 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.0003263/0.5105, allocations: 145.8 kB / 413.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.5107, allocations: 27.66 kB / 413.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.149e-05/0.5108, allocations: 25.83 kB / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.5108, allocations: 0 / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.5108, allocations: 0 / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.5108, allocations: 4 kB / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006503/0.5115, allocations: 297.4 kB / 413.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.5115, allocations: 0 / 413.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002708/0.5118, allocations: 27.97 kB / 413.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005558/0.5124, allocations: 76.67 kB / 413.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-05/0.5124, allocations: 8 kB / 413.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004623/0.5171, allocations: 1.923 MB / 415.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.5171, allocations: 4.031 kB / 415.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001991/0.5191, allocations: 351.6 kB / 416 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.5193, allocations: 104.8 kB / 416.1 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.887e-05/0.5194, allocations: 4 kB / 416.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004843/0.5199, allocations: 31.95 kB / 416.1 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.5201, allocations: 15.98 kB / 416.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.485e-05/0.5201, allocations: 8 kB / 416.2 MB, free: 8.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004482/0.5206, allocations: 197.9 kB / 416.4 MB, free: 7.902 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5206, allocations: 4 kB / 416.4 MB, free: 7.898 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008779/0.5215, allocations: 67.91 kB / 416.4 MB, free: 7.832 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.0028/0.5243, allocations: 0.9056 MB / 417.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002474/0.5268, allocations: 478.2 kB / 417.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.5268, allocations: 4.062 kB / 417.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008887/0.5277, allocations: 234.5 kB / 418 MB, free: 6.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007279/0.5285, allocations: 57.97 kB / 418.1 MB, free: 6.098 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/0.5419, allocations: 3.416 MB / 421.5 MB, free: 2.535 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000628/0.5426, allocations: 0.748 MB / 422.3 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002315/0.5428, allocations: 22.3 kB / 422.3 MB, free: 1.742 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002242/0.5431, allocations: 75.41 kB / 422.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of SimCode: time 1.983e-06/0.5431, allocations: 0 / 422.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05661/0.5997, allocations: 6.499 MB / 428.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.05/18.65, allocations: 4.688 kB / 428.9 MB, free: 11.38 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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