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.001255/0.001255, 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.001387/0.001387, allocations: 198 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.412/1.412, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 63.89 kB / 358.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2624, allocations: 50.56 MB / 408.9 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004317/0.2668, allocations: 2.904 MB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.2681, allocations: 0.7284 MB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001388/0.2682, allocations: 8 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.2684, allocations: 51.45 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000211/0.2686, allocations: 99.17 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.2689, allocations: 103.8 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004369/0.2694, allocations: 394.5 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.2696, allocations: 135.9 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.2698, allocations: 155.4 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.27, allocations: 167.3 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.125e-05/0.2701, allocations: 39.94 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.084e-05/0.2702, allocations: 40 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.417e-05/0.2703, allocations: 75.75 kB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/0.2704, allocations: 171.1 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004463/0.2709, allocations: 397.4 kB / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2709, allocations: 0 / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2709, allocations: 0 / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.2709, allocations: 0 / 414.3 MB, free: 11.97 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.001314/0.2722, allocations: 0.6961 MB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.2723, allocations: 12.03 kB / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.693e-05/0.2724, allocations: 58.73 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.743e-05/0.2724, allocations: 40.69 kB / 415.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003914/0.2728, allocations: 295.8 kB / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.2729, allocations: 20.94 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.11e-05/0.2729, allocations: 20.38 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007076/0.2736, allocations: 327.7 kB / 415.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.2737, allocations: 0 / 415.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.2737, allocations: 15.98 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.2737, allocations: 4 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008121/0.2745, allocations: 274.1 kB / 416 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00191/0.2764, allocations: 1.138 MB / 417.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008444/0.2773, allocations: 210.5 kB / 417.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003335/0.2776, allocations: 92.8 kB / 417.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.2777, allocations: 0 / 417.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004488/0.2781, allocations: 157.1 kB / 417.6 MB, free: 8.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.2781, allocations: 0 / 417.6 MB, free: 8.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001301/0.2795, allocations: 411.2 kB / 418 MB, free: 7.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/0.2795, allocations: 89.05 kB / 418.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003691/0.2799, allocations: 328.5 kB / 418.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.28, allocations: 29.69 kB / 418.5 MB, free: 7.512 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.2801, allocations: 215.9 kB / 418.7 MB, free: 7.297 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.788e-05/0.2802, allocations: 35.73 kB / 418.7 MB, free: 7.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.612e-05/0.2803, allocations: 61.88 kB / 418.8 MB, free: 7.191 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2804, allocations: 334.8 kB / 419.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003733/0.2808, allocations: 96.16 kB / 419.2 MB, free: 6.762 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004322/0.2813, allocations: 215 kB / 419.4 MB, free: 6.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007476/0.282, allocations: 331.9 kB / 419.7 MB, free: 6.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.282, allocations: 384 / 419.7 MB, free: 6.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001031/0.2831, allocations: 411.8 kB / 420.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.2831, allocations: 32.67 kB / 420.2 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.2831, allocations: 4 kB / 420.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001781/0.2833, allocations: 32.78 kB / 420.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.2836, allocations: 72.03 kB / 420.3 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.2848, allocations: 1.402 MB / 421.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.2851, allocations: 51.75 kB / 421.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.2852, allocations: 12 kB / 421.7 MB, free: 3.941 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.0001705/0.2854, allocations: 149.8 kB / 421.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.156e-05/0.2854, allocations: 31.75 kB / 421.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.848e-05/0.2855, allocations: 30.61 kB / 421.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2855, allocations: 7.984 kB / 421.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2855, allocations: 3.938 kB / 422 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2855, allocations: 0 / 422 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004614/0.286, allocations: 439.3 kB / 422.4 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.286, allocations: 7.984 kB / 422.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.2862, allocations: 35.98 kB / 422.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.827e-05/0.2863, allocations: 28.78 kB / 422.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.2863, allocations: 7.875 kB / 422.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.2874, allocations: 1.398 MB / 423.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2874, allocations: 0 / 423.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007745/0.2882, allocations: 278.5 kB / 424.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.699e-05/0.2883, allocations: 108.9 kB / 424.2 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.41e-05/0.2883, allocations: 0 / 424.2 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.2885, allocations: 23.97 kB / 424.3 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.996e-05/0.2886, allocations: 27.91 kB / 424.3 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.2887, allocations: 0 / 424.3 MB, free: 1.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00026/0.2889, allocations: 231.1 kB / 424.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2889, allocations: 0 / 424.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003256/0.2893, allocations: 71.89 kB / 424.6 MB, free: 0.8398 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.001129/0.2904, allocations: 0.8123 MB / 425.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.2914, allocations: 405.7 kB / 425.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2914, allocations: 1 kB / 425.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004911/0.2919, allocations: 222.6 kB / 426 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.2923, allocations: 45 kB / 426.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004991/0.2973, allocations: 3.147 MB / 429.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.2977, allocations: 0.756 MB / 430 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.2978, allocations: 38.95 kB / 430 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.298, allocations: 91.39 kB / 430.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.298, allocations: 3.938 kB / 430.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03447/0.3324, allocations: 6.076 MB / 436.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.923/10.26, allocations: 8.938 kB / 436.2 MB, free: 5.105 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.1.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