Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001155/0.001154, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 63.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2575, allocations: 50.54 MB / 408.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004241/0.2618, allocations: 2.772 MB / 411.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.2632, allocations: 0.7011 MB / 412.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.2634, allocations: 4 kB / 412.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.2637, allocations: 47.56 kB / 412.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.2639, allocations: 83.27 kB / 412.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.2642, allocations: 99.81 kB / 412.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004686/0.2647, allocations: 358.5 kB / 412.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.2649, allocations: 84.69 kB / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002733/0.2652, allocations: 135.4 kB / 413.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.2654, allocations: 151.4 kB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.147e-05/0.2654, allocations: 28 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.022e-05/0.2655, allocations: 28 kB / 413.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-05/0.2655, allocations: 63.77 kB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001672/0.2657, allocations: 151.2 kB / 413.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003594/0.2661, allocations: 324.5 kB / 413.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2661, allocations: 0 / 413.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.2661, allocations: 4 kB / 413.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.2661, allocations: 0 / 413.8 MB, free: 12.65 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.001291/0.2674, allocations: 0.6379 MB / 414.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.2675, allocations: 11.97 kB / 414.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.967e-05/0.2676, allocations: 58.73 kB / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.851e-05/0.2676, allocations: 36.5 kB / 414.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.2681, allocations: 275.7 kB / 414.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.2681, allocations: 16.81 kB / 414.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.006e-05/0.2681, allocations: 24.38 kB / 414.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006447/0.2688, allocations: 273.9 kB / 415.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.2688, allocations: 0 / 415.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/0.2688, allocations: 11.98 kB / 415.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.2688, allocations: 8 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008299/0.2697, allocations: 241.5 kB / 415.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.2714, allocations: 0.9441 MB / 416.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008354/0.2722, allocations: 242.5 kB / 416.6 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003265/0.2726, allocations: 105 kB / 416.7 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.2726, allocations: 7.938 kB / 416.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000497/0.2731, allocations: 173.8 kB / 416.8 MB, free: 9.395 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/0.2731, allocations: 0 / 416.8 MB, free: 9.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002352/0.2755, allocations: 0.6512 MB / 417.5 MB, free: 8.715 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.01e-05/0.2756, allocations: 114.8 kB / 417.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.2759, allocations: 266.6 kB / 417.9 MB, free: 8.312 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.2759, allocations: 33.69 kB / 417.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.276, allocations: 171.8 kB / 418.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.761e-05/0.2761, allocations: 39.45 kB / 418.1 MB, free: 8.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.654e-05/0.2762, allocations: 49.61 kB / 418.1 MB, free: 8.008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.2763, allocations: 330.8 kB / 418.5 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003427/0.2767, allocations: 103.9 kB / 418.6 MB, free: 7.574 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003974/0.2771, allocations: 167.8 kB / 418.7 MB, free: 7.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006847/0.2778, allocations: 271 kB / 419 MB, free: 7.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2778, allocations: 0 / 419 MB, free: 7.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001203/0.279, allocations: 439.6 kB / 419.4 MB, free: 6.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.279, allocations: 29.7 kB / 419.5 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.2791, allocations: 4 kB / 419.5 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004058/0.2795, allocations: 80.86 kB / 419.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.2797, allocations: 39.91 kB / 419.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002687/0.2824, allocations: 1.955 MB / 421.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003176/0.2827, allocations: 51.73 kB / 421.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.2828, allocations: 8 kB / 421.6 MB, free: 4.328 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.0001644/0.2829, allocations: 145.8 kB / 421.7 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.418e-05/0.283, allocations: 27.66 kB / 421.8 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.286e-05/0.283, allocations: 25.83 kB / 421.8 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.283, allocations: 4 kB / 421.8 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2831, allocations: 3.938 kB / 421.8 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.2831, allocations: 3.984 kB / 421.8 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002841/0.2833, allocations: 285.5 kB / 422.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2834, allocations: 0 / 422.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.2835, allocations: 23.97 kB / 422.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003306/0.2838, allocations: 84.73 kB / 422.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.2839, allocations: 0 / 422.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002562/0.2864, allocations: 1.758 MB / 423.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2865, allocations: 0 / 423.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.2876, allocations: 361.4 kB / 424.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.372e-05/0.2877, allocations: 96.77 kB / 424.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.929e-05/0.2877, allocations: 8 kB / 424.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.2879, allocations: 35.95 kB / 424.4 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.894e-05/0.288, allocations: 19.97 kB / 424.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.2881, allocations: 3.984 kB / 424.5 MB, free: 1.219 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001965/0.2883, allocations: 194 kB / 424.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2883, allocations: 0 / 424.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003652/0.2886, allocations: 67.84 kB / 424.7 MB, free: 0.9648 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.001406/0.2901, allocations: 0.9011 MB / 425.6 MB, free: 32 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001006/0.2911, allocations: 410.2 kB / 426 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2911, allocations: 4.062 kB / 426 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005208/0.2916, allocations: 230.5 kB / 426.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.292, allocations: 55.92 kB / 426.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005208/0.2972, allocations: 2.932 MB / 429.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.2975, allocations: 0.7479 MB / 430 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001167/0.2977, allocations: 22.3 kB / 430 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.2978, allocations: 79.41 kB / 430.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of SimCode: time 8.72e-07/0.2978, allocations: 0 / 430.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02782/0.3256, allocations: 6.513 MB / 436.6 MB, free: 5.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.4, allocations: 10.72 kB / 436.6 MB, free: 5.023 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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