Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001223/0.001223, allocations: 110.5 kB / 17.33 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00142/0.00142, allocations: 209.8 kB / 18.27 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 65.98 kB / 306.6 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09514/0.09663, allocations: 50.53 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004252/0.1009, allocations: 2.816 MB / 359.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.1024, allocations: 0.7051 MB / 360.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.1026, allocations: 4 kB / 360.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.1029, allocations: 27.77 kB / 360.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002623/0.1031, allocations: 75.39 kB / 360.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003297/0.1035, allocations: 83.92 kB / 360.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005441/0.104, allocations: 362.5 kB / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/0.1043, allocations: 84.69 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002319/0.1045, allocations: 131.5 kB / 361.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002241/0.1048, allocations: 155.3 kB / 361.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.187e-05/0.1049, allocations: 28 kB / 361.6 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.654e-05/0.1049, allocations: 32 kB / 361.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.911e-05/0.105, allocations: 59.77 kB / 361.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001632/0.1052, allocations: 155.2 kB / 361.8 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003733/0.1056, allocations: 315.1 kB / 362.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1056, allocations: 0 / 362.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.556e-06/0.1056, allocations: 3.984 kB / 362.1 MB, free: 9.273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.1056, allocations: 0 / 362.1 MB, free: 9.273 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.001367/0.107, allocations: 0.6457 MB / 362.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.107, allocations: 8.031 kB / 362.8 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.539e-05/0.1071, allocations: 54.73 kB / 362.8 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.284e-05/0.1072, allocations: 32.56 kB / 362.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003902/0.1076, allocations: 271.6 kB / 363.1 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.351e-05/0.1076, allocations: 16.81 kB / 363.1 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.695e-05/0.1077, allocations: 20.38 kB / 363.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006919/0.1084, allocations: 277.9 kB / 363.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.1084, allocations: 3.938 kB / 363.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.919e-05/0.1084, allocations: 8 kB / 363.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.1084, allocations: 8 kB / 363.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007412/0.1092, allocations: 249.6 kB / 363.7 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.1108, allocations: 0.9364 MB / 364.6 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00083/0.1117, allocations: 242.5 kB / 364.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.112, allocations: 104.8 kB / 365 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.64e-05/0.1121, allocations: 8.141 kB / 365 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005607/0.1126, allocations: 189.6 kB / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.355e-06/0.1126, allocations: 0 / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002275/0.1149, allocations: 0.6513 MB / 365.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.115, allocations: 106.8 kB / 365.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002894/0.1153, allocations: 282.4 kB / 366.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.1153, allocations: 25.7 kB / 366.2 MB, free: 4.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.1154, allocations: 179.8 kB / 366.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.633e-05/0.1155, allocations: 43.45 kB / 366.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.962e-05/0.1156, allocations: 49.61 kB / 366.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1157, allocations: 334.8 kB / 366.8 MB, free: 4.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003503/0.1161, allocations: 95.92 kB / 366.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003821/0.1165, allocations: 179.3 kB / 367.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007068/0.1172, allocations: 288.7 kB / 367.4 MB, free: 3.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.1172, allocations: 0 / 367.4 MB, free: 3.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001213/0.1184, allocations: 447.5 kB / 367.8 MB, free: 3.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.589e-05/0.1185, allocations: 33.7 kB / 367.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1185, allocations: 0 / 367.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003736/0.1188, allocations: 84.86 kB / 367.9 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001977/0.1191, allocations: 43.89 kB / 367.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/0.1218, allocations: 2.009 MB / 370 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.1222, allocations: 51.86 kB / 370 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.1222, allocations: 12 kB / 370 MB, free: 0.8047 MB / 302.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.0001465/0.1224, allocations: 142.3 kB / 370.2 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.062e-05/0.1224, allocations: 27.66 kB / 370.2 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.251e-05/0.1225, allocations: 29.83 kB / 370.2 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1225, allocations: 4 kB / 370.2 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-06/0.1225, allocations: 0 / 370.2 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1225, allocations: 0 / 370.2 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002698/0.1228, allocations: 301.4 kB / 370.5 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1228, allocations: 0 / 370.5 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/0.1229, allocations: 27.92 kB / 370.5 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000279/0.1232, allocations: 76.73 kB / 370.6 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.1232, allocations: 11.92 kB / 370.6 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1733/0.2965, allocations: 1.907 MB / 372.5 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2966, allocations: 0 / 372.5 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.2977, allocations: 358.5 kB / 372.9 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.373e-05/0.2978, allocations: 103.8 kB / 373 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.056e-05/0.2978, allocations: 7.766 kB / 373 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.2981, allocations: 31.03 kB / 373 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.721e-05/0.2982, allocations: 20.94 kB / 373 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.2982, allocations: 6.844 kB / 373.1 MB, free: 18.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000205/0.2984, allocations: 198 kB / 373.2 MB, free: 18.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2984, allocations: 0 / 373.2 MB, free: 18.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004459/0.2989, allocations: 69.3 kB / 373.3 MB, free: 18.79 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.001297/0.3002, allocations: 0.9062 MB / 374.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.3015, allocations: 490.2 kB / 374.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3015, allocations: 0 / 374.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004853/0.302, allocations: 231 kB / 374.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.3024, allocations: 42.7 kB / 375 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007246/0.3096, allocations: 3.526 MB / 378.5 MB, free: 16.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.3099, allocations: 0.7433 MB / 379.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001598/0.3101, allocations: 23.56 kB / 379.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.3102, allocations: 73.38 kB / 379.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3102, allocations: 1.188 kB / 379.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02225/0.3325, allocations: 6.056 MB / 385.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001898/0.3327, allocations: 256.1 kB / 385.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.005/2.338, allocations: 0 / 385.6 MB, free: 13.99 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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