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.001424/0.001424, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001687/0.001687, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.3 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1103, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004928/0.1153, allocations: 2.901 MB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.1173, allocations: 0.74 MB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003866/0.1177, allocations: 4 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002711/0.118, allocations: 47.5 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003949/0.1184, allocations: 95.19 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004219/0.1188, allocations: 107.8 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006523/0.1195, allocations: 394.5 kB / 361.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003061/0.1198, allocations: 143.8 kB / 362 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002563/0.1201, allocations: 147.4 kB / 362.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002547/0.1204, allocations: 179.2 kB / 362.3 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.605e-05/0.1204, allocations: 36 kB / 362.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.343e-05/0.1205, allocations: 36 kB / 362.4 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.821e-05/0.1206, allocations: 83.67 kB / 362.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000192/0.1208, allocations: 167.1 kB / 362.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004482/0.1213, allocations: 387 kB / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1213, allocations: 0 / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1213, allocations: 3.938 kB / 363 MB, free: 8.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.459e-05/0.1213, allocations: 0 / 363 MB, free: 8.523 MB / 302.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.001609/0.1229, allocations: 0.6809 MB / 363.7 MB, free: 7.789 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.123, allocations: 8.031 kB / 363.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.843e-05/0.1231, allocations: 66.72 kB / 363.8 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.1232, allocations: 36.56 kB / 363.8 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004641/0.1237, allocations: 287.6 kB / 364.1 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.1237, allocations: 16.94 kB / 364.1 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.247e-05/0.1238, allocations: 28.31 kB / 364.1 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007903/0.1246, allocations: 327.7 kB / 364.5 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.1246, allocations: 0 / 364.5 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/0.1246, allocations: 12 kB / 364.5 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.1246, allocations: 8 kB / 364.5 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008593/0.1255, allocations: 274 kB / 364.8 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001937/0.1274, allocations: 1.138 MB / 365.9 MB, free: 5.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008317/0.1283, allocations: 210.5 kB / 366.1 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003174/0.1286, allocations: 92.92 kB / 366.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.1287, allocations: 3.984 kB / 366.2 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005304/0.1292, allocations: 161 kB / 366.3 MB, free: 4.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.1292, allocations: 0 / 366.3 MB, free: 4.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001325/0.1305, allocations: 407.1 kB / 366.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.1306, allocations: 85.11 kB / 366.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003911/0.131, allocations: 324.5 kB / 367.1 MB, free: 4.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.1311, allocations: 33.7 kB / 367.2 MB, free: 4.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.1312, allocations: 207.4 kB / 367.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.803e-05/0.1313, allocations: 39.53 kB / 367.4 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.317e-05/0.1314, allocations: 53.92 kB / 367.5 MB, free: 3.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1315, allocations: 342.8 kB / 367.8 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003459/0.1319, allocations: 92.16 kB / 367.9 MB, free: 3.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000411/0.1323, allocations: 206.9 kB / 368.1 MB, free: 3.086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007559/0.1331, allocations: 335.9 kB / 368.4 MB, free: 2.699 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.1331, allocations: 4 kB / 368.4 MB, free: 2.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009931/0.1341, allocations: 407.6 kB / 368.8 MB, free: 2.281 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.302e-05/0.1341, allocations: 37.05 kB / 368.9 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.1341, allocations: 4 kB / 368.9 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001883/0.1343, allocations: 28.84 kB / 368.9 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/0.1346, allocations: 63.88 kB / 369 MB, free: 2.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.1358, allocations: 1.41 MB / 370.4 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003531/0.1362, allocations: 51.66 kB / 370.4 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.649e-05/0.1362, allocations: 12 kB / 370.4 MB, free: 0.5352 MB / 302.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.0001641/0.1364, allocations: 154.8 kB / 370.6 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.313e-05/0.1364, allocations: 35.61 kB / 370.6 MB, free: 348 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.132e-05/0.1365, allocations: 22.61 kB / 370.6 MB, free: 328 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1365, allocations: 4 kB / 370.6 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1365, allocations: 3.938 kB / 370.6 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1365, allocations: 0 / 370.6 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1684/0.3049, allocations: 442.4 kB / 371.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3049, allocations: 0.75 kB / 371.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.3052, allocations: 33.53 kB / 371.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001441/0.3053, allocations: 31.53 kB / 371.1 MB, free: 19.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.3054, allocations: 3.516 kB / 371.1 MB, free: 19.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007949/0.3062, allocations: 1.394 MB / 372.5 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3062, allocations: 4.797 kB / 372.5 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008054/0.307, allocations: 273.1 kB / 372.8 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.401e-05/0.3071, allocations: 105.3 kB / 372.9 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.3071, allocations: 6.625 kB / 372.9 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.3074, allocations: 25.27 kB / 372.9 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.289e-05/0.3074, allocations: 19.17 kB / 373 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.3075, allocations: 11.36 kB / 373 MB, free: 18.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002454/0.3077, allocations: 226 kB / 373.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3077, allocations: 0 / 373.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003702/0.3081, allocations: 70.67 kB / 373.3 MB, free: 18.11 MB / 302.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.0009499/0.3091, allocations: 0.8094 MB / 374.1 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009804/0.3101, allocations: 412.2 kB / 374.5 MB, free: 17.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3101, allocations: 0.8438 kB / 374.5 MB, free: 17.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004598/0.3105, allocations: 221 kB / 374.7 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.3109, allocations: 53.67 kB / 374.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00471/0.3156, allocations: 3.172 MB / 377.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.3159, allocations: 0.7549 MB / 378.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001661/0.3161, allocations: 32.39 kB / 378.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.3162, allocations: 89.33 kB / 378.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3162, allocations: 0 / 378.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.3443, allocations: 5.985 MB / 384.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.244/9.588, allocations: 1.125 kB / 384.8 MB, free: 13.84 MB / 302.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