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.001532/0.001532, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001862/0.001862, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 63.91 kB / 358.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2731, allocations: 50.53 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004424/0.2775, allocations: 2.776 MB / 411.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.2791, allocations: 0.7011 MB / 412.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.2793, allocations: 4 kB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.2795, allocations: 39.58 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000306/0.2798, allocations: 91.25 kB / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.2802, allocations: 99.81 kB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005154/0.2807, allocations: 358.5 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.281, allocations: 84.69 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000278/0.2813, allocations: 135.4 kB / 413.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003596/0.2816, allocations: 155.3 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.808e-05/0.2817, allocations: 28 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.531e-05/0.2818, allocations: 32 kB / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.435e-05/0.2819, allocations: 59.81 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.2821, allocations: 151.2 kB / 413.5 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004014/0.2825, allocations: 324.5 kB / 413.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2825, allocations: 3.938 kB / 413.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2825, allocations: 0 / 413.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.2825, allocations: 0 / 413.8 MB, free: 12.52 MB / 334.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.001447/0.284, allocations: 0.6418 MB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.284, allocations: 12.03 kB / 414.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.928e-05/0.2841, allocations: 58.67 kB / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.286e-05/0.2842, allocations: 36.56 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.2847, allocations: 275.7 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.2847, allocations: 16.81 kB / 414.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.345e-05/0.2847, allocations: 16.38 kB / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006623/0.2854, allocations: 281.9 kB / 415.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.2854, allocations: 0 / 415.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.68e-05/0.2855, allocations: 8 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.2855, allocations: 8 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007523/0.2862, allocations: 249.5 kB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.288, allocations: 0.9363 MB / 416.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008461/0.2888, allocations: 242.5 kB / 416.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.2892, allocations: 105 kB / 416.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.2892, allocations: 3.938 kB / 416.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004744/0.2897, allocations: 177.8 kB / 416.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/0.2897, allocations: 4 kB / 416.8 MB, free: 9.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.00246/0.2921, allocations: 0.6546 MB / 417.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.055e-05/0.2922, allocations: 106.8 kB / 417.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003247/0.2926, allocations: 270.6 kB / 417.9 MB, free: 8.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.2926, allocations: 29.7 kB / 417.9 MB, free: 8.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.2928, allocations: 183.7 kB / 418.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.224e-05/0.2928, allocations: 47.39 kB / 418.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.84e-05/0.293, allocations: 45.61 kB / 418.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.2931, allocations: 338.8 kB / 418.5 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003538/0.2935, allocations: 95.92 kB / 418.6 MB, free: 7.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004143/0.2939, allocations: 186.2 kB / 418.8 MB, free: 7.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007418/0.2947, allocations: 292.8 kB / 419 MB, free: 6.891 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.2947, allocations: 0 / 419 MB, free: 6.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001328/0.296, allocations: 443.6 kB / 419.5 MB, free: 6.441 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.137e-05/0.2961, allocations: 33.7 kB / 419.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.2961, allocations: 4 kB / 419.5 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003941/0.2965, allocations: 80.86 kB / 419.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.2967, allocations: 47.89 kB / 419.6 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00301/0.2998, allocations: 2.001 MB / 421.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.3001, allocations: 59.7 kB / 421.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.5e-05/0.3002, allocations: 12 kB / 421.7 MB, free: 4.055 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.0001481/0.3003, allocations: 145.3 kB / 421.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.412e-05/0.3004, allocations: 31.59 kB / 421.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.241e-05/0.3004, allocations: 25.83 kB / 421.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3004, allocations: 0 / 421.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3004, allocations: 4 kB / 421.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3004, allocations: 3.984 kB / 421.9 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.3007, allocations: 297.4 kB / 422.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.3007, allocations: 0 / 422.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/0.3009, allocations: 27.91 kB / 422.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002755/0.3012, allocations: 76.67 kB / 422.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.3012, allocations: 12 kB / 422.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002395/0.3036, allocations: 1.916 MB / 424.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3036, allocations: 4.031 kB / 424.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.3047, allocations: 353.4 kB / 424.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.626e-05/0.3048, allocations: 104.8 kB / 424.7 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.239e-05/0.3048, allocations: 0 / 424.7 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.3051, allocations: 31.97 kB / 424.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.848e-05/0.3052, allocations: 19.97 kB / 424.7 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.3052, allocations: 8 kB / 424.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002038/0.3054, allocations: 198 kB / 424.9 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3054, allocations: 0 / 424.9 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004078/0.3058, allocations: 63.91 kB / 425 MB, free: 0.5234 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.001382/0.3072, allocations: 0.894 MB / 425.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.3087, allocations: 485.8 kB / 426.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.3088, allocations: 0 / 426.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004922/0.3093, allocations: 238 kB / 426.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.3096, allocations: 56.78 kB / 426.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00753/0.3171, allocations: 3.428 MB / 430.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.3175, allocations: 0.744 MB / 430.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.3177, allocations: 22.3 kB / 430.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.3178, allocations: 79.41 kB / 430.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3178, allocations: 0 / 430.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02847/0.3463, allocations: 6.513 MB / 437.4 MB, free: 4.055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.43, allocations: 6.156 kB / 437.5 MB, free: 4.055 MB / 350.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