Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001494/0.001494, 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.001977/0.001977, 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.364/1.364, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 67.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2954, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004812/0.3003, allocations: 2.894 MB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.302, allocations: 0.7284 MB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002926/0.3023, allocations: 8 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002387/0.3026, allocations: 59.44 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003087/0.3029, allocations: 91.19 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.3033, allocations: 103.9 kB / 412.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005268/0.3039, allocations: 398.4 kB / 413.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.3042, allocations: 135.9 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002537/0.3044, allocations: 155.4 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.3047, allocations: 171.3 kB / 413.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.959e-05/0.3048, allocations: 36 kB / 413.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.989e-05/0.3048, allocations: 39.94 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.555e-05/0.3049, allocations: 79.73 kB / 413.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001836/0.3051, allocations: 171.1 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004166/0.3055, allocations: 396.2 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3056, allocations: 0 / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3056, allocations: 0 / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.3056, allocations: 0 / 414.2 MB, free: 12.07 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001487/0.3071, allocations: 0.6925 MB / 414.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.3071, allocations: 12.03 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.932e-05/0.3072, allocations: 58.72 kB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.999e-05/0.3073, allocations: 32.56 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005054/0.3078, allocations: 295.6 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.3079, allocations: 20.94 kB / 415.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.421e-05/0.3079, allocations: 28.36 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006983/0.3086, allocations: 323.7 kB / 415.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3086, allocations: 4 kB / 415.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.3087, allocations: 12 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.3087, allocations: 7.938 kB / 415.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007352/0.3094, allocations: 274.1 kB / 416 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.3112, allocations: 1.122 MB / 417.1 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007724/0.312, allocations: 214.5 kB / 417.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002866/0.3123, allocations: 92.78 kB / 417.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.3123, allocations: 0 / 417.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004059/0.3127, allocations: 153.1 kB / 417.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.3127, allocations: 0 / 417.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001371/0.3141, allocations: 415 kB / 417.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.3142, allocations: 89.03 kB / 418 MB, free: 7.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004424/0.3147, allocations: 328.4 kB / 418.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.3147, allocations: 29.7 kB / 418.4 MB, free: 7.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.3149, allocations: 211.4 kB / 418.6 MB, free: 7.422 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.006e-05/0.3149, allocations: 27.64 kB / 418.6 MB, free: 7.395 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.3151, allocations: 61.83 kB / 418.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.3152, allocations: 338.8 kB / 419 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004691/0.3157, allocations: 96.16 kB / 419.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005026/0.3162, allocations: 215 kB / 419.3 MB, free: 6.629 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000891/0.3171, allocations: 335.9 kB / 419.6 MB, free: 6.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3171, allocations: 0 / 419.6 MB, free: 6.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001068/0.3182, allocations: 407.6 kB / 420 MB, free: 5.828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.149e-05/0.3183, allocations: 29.7 kB / 420.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3183, allocations: 4 kB / 420.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001736/0.3185, allocations: 36.83 kB / 420.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.3187, allocations: 68.05 kB / 420.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.3198, allocations: 1.403 MB / 421.6 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000335/0.3201, allocations: 51.66 kB / 421.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.3201, allocations: 8 kB / 421.6 MB, free: 4.074 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (27): * Single equations (assignments): 25 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001497/0.3203, allocations: 153.8 kB / 421.8 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.036e-05/0.3204, allocations: 27.66 kB / 421.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.873e-05/0.3204, allocations: 34.55 kB / 421.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3204, allocations: 4 kB / 421.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3204, allocations: 3.938 kB / 421.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3204, allocations: 0 / 421.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000425/0.3209, allocations: 451.1 kB / 422.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3209, allocations: 0 / 422.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.3211, allocations: 32 kB / 422.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001032/0.3212, allocations: 36.7 kB / 422.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.3212, allocations: 4 kB / 422.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/0.3222, allocations: 1.398 MB / 423.8 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3222, allocations: 0 / 423.8 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006947/0.3229, allocations: 270.4 kB / 424 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.541e-05/0.323, allocations: 108.8 kB / 424.1 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.17e-05/0.3231, allocations: 7.984 kB / 424.1 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.3233, allocations: 23.97 kB / 424.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.08e-05/0.3234, allocations: 19.92 kB / 424.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.3234, allocations: 0 / 424.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002332/0.3236, allocations: 235.1 kB / 424.4 MB, free: 1.043 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3237, allocations: 0 / 424.4 MB, free: 1.043 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003394/0.324, allocations: 71.84 kB / 424.5 MB, free: 0.9727 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00105/0.3251, allocations: 0.809 MB / 425.3 MB, free: 128 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009454/0.326, allocations: 413.7 kB / 425.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.326, allocations: 1 kB / 425.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004357/0.3265, allocations: 210.7 kB / 425.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003575/0.3268, allocations: 52.23 kB / 425.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004681/0.3315, allocations: 3.145 MB / 429.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.3318, allocations: 0.7518 MB / 429.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.332, allocations: 42.89 kB / 429.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.3321, allocations: 87.41 kB / 430 MB, free: 11.18 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3321, allocations: 0 / 430 MB, free: 11.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0268/0.3589, allocations: 6.199 MB / 436.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.431/9.79, allocations: 8.484 kB / 436.2 MB, free: 5.133 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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:R,Vin,Vns,Vps,Vref,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,potentiometer.LossPower,potentiometer.R,potentiometer.Rn,potentiometer.Rp,potentiometer.T,potentiometer.T_heatPort,potentiometer.T_ref,potentiometer.alpha,potentiometer.contact.i,potentiometer.contact.v,potentiometer.pin_n.i,potentiometer.pin_n.v,potentiometer.pin_p.i,potentiometer.pin_p.v,potentiometer.rConstant,potentiometer.useHeatPort,potentiometer.useRinput,supplyVoltage.Vns,supplyVoltage.Vps,supplyVoltage.ground.i,supplyVoltage.ground.v,supplyVoltage.negativeSupply.V,supplyVoltage.negativeSupply.i,supplyVoltage.negativeSupply.n.i,supplyVoltage.negativeSupply.n.v,supplyVoltage.negativeSupply.p.i,supplyVoltage.negativeSupply.p.v,supplyVoltage.negativeSupply.v,supplyVoltage.pin_n.i,supplyVoltage.pin_n.v,supplyVoltage.pin_p.i,supplyVoltage.pin_p.v,supplyVoltage.positiveSupply.V,supplyVoltage.positiveSupply.i,supplyVoltage.positiveSupply.n.i,supplyVoltage.positiveSupply.n.v,supplyVoltage.positiveSupply.p.i,supplyVoltage.positiveSupply.p.v,supplyVoltage.positiveSupply.v,time,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