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.001231/0.001231, allocations: 122.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.002051/0.002051, allocations: 202 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.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001125, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2567, allocations: 50.56 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004174/0.2609, allocations: 2.897 MB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.2625, allocations: 0.7362 MB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002795/0.2628, allocations: 4 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002025/0.263, allocations: 47.5 kB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002842/0.2633, allocations: 95.19 kB / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.2636, allocations: 107.8 kB / 412.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004238/0.2641, allocations: 394.5 kB / 413.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002528/0.2643, allocations: 139.9 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001867/0.2645, allocations: 151.4 kB / 413.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002089/0.2647, allocations: 175.2 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.316e-05/0.2648, allocations: 36 kB / 413.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.335e-05/0.2649, allocations: 40 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.226e-05/0.2649, allocations: 75.69 kB / 413.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.2651, allocations: 175.1 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.2655, allocations: 396.3 kB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.2655, allocations: 0 / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2655, allocations: 0 / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.2655, allocations: 0 / 414.2 MB, free: 12.08 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.001436/0.267, allocations: 0.6886 MB / 414.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.267, allocations: 12.03 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.127e-05/0.2671, allocations: 58.72 kB / 415 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.675e-05/0.2672, allocations: 36.56 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.2676, allocations: 295.5 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.2677, allocations: 20.94 kB / 415.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.824e-05/0.2677, allocations: 24.38 kB / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007646/0.2685, allocations: 323.7 kB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.2685, allocations: 0 / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.2686, allocations: 16 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.2686, allocations: 7.938 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00083/0.2694, allocations: 274 kB / 416 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.2713, allocations: 1.126 MB / 417.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008126/0.2721, allocations: 206.7 kB / 417.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003306/0.2725, allocations: 92.72 kB / 417.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.2725, allocations: 0 / 417.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004588/0.273, allocations: 157 kB / 417.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.754e-06/0.273, allocations: 0 / 417.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.00137/0.2744, allocations: 415 kB / 417.9 MB, free: 8.102 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.516e-05/0.2744, allocations: 89.03 kB / 418 MB, free: 7.996 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003386/0.2748, allocations: 324.5 kB / 418.3 MB, free: 7.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.2748, allocations: 33.7 kB / 418.4 MB, free: 7.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.275, allocations: 199.5 kB / 418.6 MB, free: 7.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.988e-05/0.275, allocations: 31.55 kB / 418.6 MB, free: 7.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.731e-05/0.2751, allocations: 57.83 kB / 418.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.2752, allocations: 342.8 kB / 419 MB, free: 7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003488/0.2756, allocations: 96.16 kB / 419.1 MB, free: 6.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000408/0.276, allocations: 218.9 kB / 419.3 MB, free: 6.641 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007128/0.2767, allocations: 331.9 kB / 419.6 MB, free: 6.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.2767, allocations: 4 kB / 419.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009509/0.2777, allocations: 403.6 kB / 420 MB, free: 5.844 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.56e-05/0.2777, allocations: 37.7 kB / 420.1 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.2777, allocations: 4 kB / 420.1 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001733/0.2779, allocations: 28.83 kB / 420.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002752/0.2782, allocations: 63.89 kB / 420.2 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.2792, allocations: 1.414 MB / 421.6 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003414/0.2796, allocations: 56.03 kB / 421.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.2796, allocations: 12 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.0001402/0.2798, allocations: 145.7 kB / 421.8 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.289e-05/0.2798, allocations: 31.72 kB / 421.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.574e-05/0.2799, allocations: 34.61 kB / 421.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.2799, allocations: 0 / 421.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2799, allocations: 3.938 kB / 421.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2799, allocations: 0 / 421.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004175/0.2803, allocations: 455 kB / 422.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.2803, allocations: 0 / 422.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001799/0.2805, allocations: 31.97 kB / 422.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.971e-05/0.2806, allocations: 32.75 kB / 422.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.2807, allocations: 11.98 kB / 422.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009088/0.2816, allocations: 1.391 MB / 423.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2816, allocations: 0 / 423.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000744/0.2823, allocations: 266.4 kB / 424 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.07e-05/0.2824, allocations: 104.8 kB / 424.1 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.2825, allocations: 8 kB / 424.1 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.2827, allocations: 27.95 kB / 424.2 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.926e-05/0.2828, allocations: 23.86 kB / 424.2 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.2828, allocations: 4 kB / 424.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002238/0.2831, allocations: 231.1 kB / 424.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2831, allocations: 0 / 424.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003438/0.2834, allocations: 67.84 kB / 424.5 MB, free: 0.9844 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.00103/0.2845, allocations: 0.8167 MB / 425.3 MB, free: 132 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001006/0.2855, allocations: 410.2 kB / 425.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2855, allocations: 0 / 425.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004889/0.286, allocations: 219.3 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.0003309/0.2863, allocations: 42.2 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.004814/0.2912, 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.0002922/0.2915, allocations: 0.7558 MB / 429.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001339/0.2916, allocations: 34.97 kB / 429.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.2918, allocations: 87.41 kB / 430 MB, free: 11.2 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2918, allocations: 0 / 430 MB, free: 11.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/0.3179, allocations: 6.206 MB / 436.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.54/9.858, allocations: 4.875 kB / 436.2 MB, free: 5.141 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