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.001617/0.001617, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001676/0.001676, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 64.12 kB / 358.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.285, allocations: 50.55 MB / 408.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004129/0.2892, allocations: 2.784 MB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.2905, allocations: 0.7011 MB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.2906, allocations: 4 kB / 412.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.2908, allocations: 39.58 kB / 412.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001862/0.291, allocations: 95.12 kB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002876/0.2913, allocations: 103.8 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004175/0.2917, allocations: 354.5 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.2919, allocations: 88.67 kB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.2921, allocations: 135.5 kB / 413.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.2923, allocations: 147.3 kB / 413.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.446e-05/0.2924, allocations: 28 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.74e-05/0.2924, allocations: 32 kB / 413.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.603e-05/0.2925, allocations: 59.77 kB / 413.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.2927, allocations: 155.2 kB / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003893/0.2931, allocations: 329.8 kB / 413.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2931, allocations: 0 / 413.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2931, allocations: 0 / 413.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.2931, allocations: 0 / 413.9 MB, free: 12.42 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.001336/0.2944, allocations: 0.6494 MB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.2945, allocations: 12.03 kB / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.477e-05/0.2946, allocations: 50.73 kB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.227e-05/0.2946, allocations: 32.75 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/0.2951, allocations: 279.8 kB / 414.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.2951, allocations: 20.81 kB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.2951, allocations: 20.36 kB / 414.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006476/0.2958, allocations: 281.8 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.2958, allocations: 0 / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.2958, allocations: 12 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.2959, allocations: 8 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007591/0.2966, allocations: 237.6 kB / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.2984, allocations: 0.9406 MB / 416.4 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000842/0.2993, allocations: 238.5 kB / 416.6 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003423/0.2996, allocations: 100.8 kB / 416.7 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.2996, allocations: 8.219 kB / 416.7 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004902/0.3001, allocations: 185.3 kB / 416.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.402e-06/0.3002, allocations: 0 / 416.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002376/0.3025, allocations: 0.6513 MB / 417.6 MB, free: 8.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.448e-05/0.3026, allocations: 106.8 kB / 417.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003062/0.3029, allocations: 282.5 kB / 418 MB, free: 8.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.303, allocations: 33.69 kB / 418 MB, free: 8.031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3031, allocations: 180.1 kB / 418.2 MB, free: 7.852 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.152e-05/0.3032, allocations: 43.67 kB / 418.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.371e-05/0.3033, allocations: 45.66 kB / 418.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3034, allocations: 330.8 kB / 418.6 MB, free: 7.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003527/0.3038, allocations: 103.9 kB / 418.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004136/0.3042, allocations: 186.1 kB / 418.9 MB, free: 7.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000732/0.305, allocations: 290 kB / 419.1 MB, free: 6.785 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.305, allocations: 7.984 kB / 419.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00125/0.3062, allocations: 439.8 kB / 419.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.018e-05/0.3063, allocations: 37.64 kB / 419.6 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.3063, allocations: 4 kB / 419.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003655/0.3067, allocations: 76.8 kB / 419.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.3069, allocations: 44 kB / 419.7 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003001/0.3099, allocations: 2.017 MB / 421.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/0.3102, allocations: 47.86 kB / 421.8 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.3103, allocations: 12 kB / 421.8 MB, free: 3.945 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.0001564/0.3104, allocations: 137.8 kB / 422 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.465e-05/0.3105, allocations: 31.86 kB / 422 MB, free: 3.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.833e-05/0.3105, allocations: 29.77 kB / 422 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3105, allocations: 4 kB / 422 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.3105, allocations: 0 / 422 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.3106, allocations: 0 / 422 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002937/0.3109, allocations: 285.5 kB / 422.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3109, allocations: 0 / 422.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001393/0.311, allocations: 27.97 kB / 422.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002821/0.3113, allocations: 80.73 kB / 422.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.3113, allocations: 12.06 kB / 422.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002584/0.3139, allocations: 1.92 MB / 424.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3139, allocations: 4.062 kB / 424.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.315, allocations: 357.5 kB / 424.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.66e-05/0.3151, allocations: 101 kB / 424.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.229e-05/0.3152, allocations: 0 / 424.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.3154, allocations: 39.95 kB / 424.8 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.284e-05/0.3155, allocations: 20.02 kB / 424.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.3155, allocations: 7.984 kB / 424.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002143/0.3157, allocations: 194 kB / 425 MB, free: 492 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3157, allocations: 0 / 425 MB, free: 492 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003885/0.3161, allocations: 67.89 kB / 425.1 MB, free: 424 kB / 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.001478/0.3176, allocations: 0.9014 MB / 426 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.319, allocations: 481.9 kB / 426.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.319, allocations: 4 kB / 426.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005061/0.3195, allocations: 234.9 kB / 426.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.3198, allocations: 51.2 kB / 426.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007298/0.3271, allocations: 3.425 MB / 430.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.3276, allocations: 0.7518 MB / 430.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001019/0.3277, allocations: 18.3 kB / 431 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.3278, allocations: 83.41 kB / 431 MB, free: 10.25 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3278, allocations: 0 / 431 MB, free: 10.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03446/0.3623, allocations: 6.37 MB / 437.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.9, allocations: 7.438 kB / 437.4 MB, free: 4.086 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.1.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